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)
167 167
def _h777_write_block(radio, block_addr, block_size):
168 168
    serial = radio.pipe
169 169

  
170
    cmd = struct.pack(">cHb", 'W', block_addr, BLOCK_SIZE)
170
    if 0x02B0 <= block_addr <= 0x02C0:
171
        cmd = struct.pack(">cHb", 'Y', block_addr, BLOCK_SIZE)
172
    else:
173
        cmd = struct.pack(">cHb", 'W', block_addr, BLOCK_SIZE)
171 174
    data = radio.get_mmap()[block_addr:block_addr + 8]
172 175

  
173 176
    LOG.debug("Writing Data:")
......
275 278

  
276 279
    _ranges = [
277 280
        (0x0000, 0x0110),
278
        (0x02B0, 0x02C0),
279 281
        (0x0380, 0x03E0),
282
        (0x02B0, 0x02C0),
280 283
    ]
281 284
    _memsize = 0x03E0
282 285
    _has_fm = True
(3-3/4)