bin2a1monitor.py script fix

This commit is contained in:
flowenol 2023-03-31 23:17:51 +02:00
parent 012d30fd11
commit 53abc88b83

View File

@ -1,5 +1,4 @@
import sys import sys
import binascii
""" """
This utility transforms binary data to A1 monitor format, starting offset This utility transforms binary data to A1 monitor format, starting offset
@ -20,7 +19,7 @@ if __name__ == "__main__":
byte = file.read(1) byte = file.read(1)
while byte: while byte:
row.append(binascii.hexlify(byte).upper()) row.append(byte.hex().upper())
if len(row) == 8: if len(row) == 8:
print_row(row_offset, row) print_row(row_offset, row)
row = list() row = list()