mirror of
https://github.com/Tengo10/fabaccess_klipper.git
synced 2025-03-12 15:01:43 +01:00
Added handle for Blocked or Disabled
This commit is contained in:
parent
c665ece3c5
commit
e8e9b5fe22
@ -30,6 +30,12 @@ class FabCon:
|
|||||||
elif req.text == "free":
|
elif req.text == "free":
|
||||||
logging.info("FABACCESS Machine not registered to User, Canceling")
|
logging.info("FABACCESS Machine not registered to User, Canceling")
|
||||||
self.printer.invoke_shutdown("FABACCESS Machine not registered to User")
|
self.printer.invoke_shutdown("FABACCESS Machine not registered to User")
|
||||||
|
elif req.text == "disabled":
|
||||||
|
logging.info("FABACCESS Machine Blocked, Canceling")
|
||||||
|
self.printer.invoke_shutdown("FABACCESS Machine Blocked")
|
||||||
|
elif req.text == "blocked":
|
||||||
|
logging.info("FABACCESS Machine Disabled, Canceling")
|
||||||
|
self.printer.invoke_shutdown("FABACCESS Machine Disabled")
|
||||||
except:
|
except:
|
||||||
logging.warning("FABACCESS ERROR")
|
logging.warning("FABACCESS ERROR")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user