Project

General

Profile

Bug #6969 » GA-2S_settings.patch

Tony Fuller, 08/11/2019 09:43 AM

View differences:

chirp/drivers/h777.py (date 1565541326000)
def _h777_write_block(radio, block_addr, block_size):
serial = radio.pipe
cmd = struct.pack(">cHb", 'W', block_addr, BLOCK_SIZE)
if 0x02B0 <= block_addr <= 0x02C0:
cmd = struct.pack(">cHb", 'Y', block_addr, BLOCK_SIZE)
else:
cmd = struct.pack(">cHb", 'W', block_addr, BLOCK_SIZE)
data = radio.get_mmap()[block_addr:block_addr + 8]
LOG.debug("Writing Data:")
......
_ranges = [
(0x0000, 0x0110),
(0x02B0, 0x02C0),
(0x0380, 0x03E0),
(0x02B0, 0x02C0),
]
_memsize = 0x03E0
_has_fm = True
(3-3/4)