tk8180: Fix fast uploading empty pages

The OEM software sends a special command to indicate an entire block
is empty. The code in CHIRP to do this was wrong, causing it to not
accelerate as expected.
This commit is contained in:
Dan Smith 2026-07-28 18:41:22 -07:00
parent 77cd4bb4ba
commit df9a417a4f

View file

@ -520,7 +520,7 @@ def do_upload(radio):
for block in range(0, 0xBF + 1):
addr = block * 0x100
chunk = bytes(radio._mmap[addr:addr + 0x100])
if all(byte == b'\xff' for byte in chunk):
if all(byte == 0xFF for byte in chunk):
send(radio, make_frame('Z', block, b'\xFF'))
else:
radio.pipe.log('Sending block %i' % block)