mirror of
https://github.com/kk7ds/chirp
synced 2026-08-13 17:51:36 -04:00
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:
parent
77cd4bb4ba
commit
df9a417a4f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue