mirror of
https://github.com/furrtek/PrecIR.git
synced 2026-05-14 18:25:09 +00:00
Bugfix: setsegs.py bitmap length
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user