Bugfix: setsegs.py bitmap length

This commit is contained in:
Furrtek
2019-08-10 14:42:35 +02:00
parent c8b4cbcb45
commit ce5a83318f
+1 -3
View File
@@ -37,7 +37,7 @@ frames = []
# Update page command + data
payload = [0xBA, 0x00, 0x00, 0x00]
payload.extend(bitmap[1:])
payload.extend(bitmap)
# Segment bitmap has its own CRC16
segcrc = pr.crc16(bitmap)
payload.append(segcrc & 255)
@@ -50,8 +50,6 @@ frame.extend(payload[1:])
pr.terminate_frame(frame, 100)
frames.append(frame)
print(frame)
# DEBUG
#f = open("out.txt", "w")
#for fr in frames: