Carica l'immagine di stampa se nello stato viene segnalata memoria vuota
This commit is contained in:
+4
-1
@@ -39,7 +39,10 @@ def main():
|
|||||||
LOGGER.debug("Timeout stampa")
|
LOGGER.debug("Timeout stampa")
|
||||||
lastAck = False
|
lastAck = False
|
||||||
try:
|
try:
|
||||||
connessa = printer.keepalive()
|
connessa, statusUpdated = printer.keepalive()
|
||||||
|
if statusUpdated and printer.headStatus['txt'] == ">> No Label <<":
|
||||||
|
LOGGER.warning("Immagine di stampa non caricata, invio..")
|
||||||
|
lastAck = True
|
||||||
except RuntimeError as r:
|
except RuntimeError as r:
|
||||||
LOGGER.error("Stampante Disconnessa")
|
LOGGER.error("Stampante Disconnessa")
|
||||||
connessa = False
|
connessa = False
|
||||||
|
|||||||
Reference in New Issue
Block a user