Carica l'immagine di stampa se nello stato viene segnalata memoria vuota

master
Emanuele Trabattoni 2019-11-12 09:23:01 +01:00
parent 3c726a8937
commit cc2e801ec6
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ def main():
LOGGER.debug("Timeout stampa")
lastAck = False
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:
LOGGER.error("Stampante Disconnessa")
connessa = False