mirror of
https://github.com/Ircama/epson_print_conf.git
synced 2024-10-18 09:10:36 -04:00
Refinements
This commit is contained in:
parent
14c1f536c6
commit
79450e9c76
1 changed files with 7 additions and 2 deletions
|
@ -652,7 +652,8 @@ class EpsonPrinter:
|
||||||
|
|
||||||
elif ftype == 0x10: # Loading path information
|
elif ftype == 0x10: # Loading path information
|
||||||
data_set["loading_path"] = item.hex().upper()
|
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"
|
data_set["loading_path"] = "fixed"
|
||||||
|
|
||||||
elif ftype == 0x13: # Cancel code
|
elif ftype == 0x13: # Cancel code
|
||||||
|
@ -672,7 +673,11 @@ class EpsonPrinter:
|
||||||
data_set["jobname"] = "Not defined"
|
data_set["jobname"] = "Not defined"
|
||||||
|
|
||||||
elif ftype == 0x1f: # serial
|
elif ftype == 0x1f: # serial
|
||||||
data_set["serial"] = str(item)
|
try:
|
||||||
|
data_set["serial"] = item.decode()
|
||||||
|
except Exception:
|
||||||
|
data_set["serial"] = str(item)
|
||||||
|
|
||||||
|
|
||||||
elif ftype == 0x37: # Maintenance box information
|
elif ftype == 0x37: # Maintenance box information
|
||||||
num_bytes = item[0]
|
num_bytes = item[0]
|
||||||
|
|
Loading…
Reference in a new issue