Refinements

This commit is contained in:
Ircama 2023-08-04 19:16:24 +02:00
parent 14c1f536c6
commit 79450e9c76

View file

@ -652,7 +652,8 @@ class EpsonPrinter:
elif ftype == 0x10: # Loading path information
data_set["loading_path"] = item.hex().upper()
if data_set["loading_path"] == "01094E":
if data_set["loading_path"] in [
"01094E", "01084E0E4E4E014E4E", "010C4E0E4E4E084E4E"]:
data_set["loading_path"] = "fixed"
elif ftype == 0x13: # Cancel code
@ -672,8 +673,12 @@ class EpsonPrinter:
data_set["jobname"] = "Not defined"
elif ftype == 0x1f: # serial
try:
data_set["serial"] = item.decode()
except Exception:
data_set["serial"] = str(item)
elif ftype == 0x37: # Maintenance box information
num_bytes = item[0]
if num_bytes < 1 or num_bytes > 2: