rt22: Fix tones not being enabled

Memories that chirp edits from scratch ended up with more unknown
bits set, which interfered with the enabling of tones. This makes us
clear the memory to zero first (which appears to be the way other
software does it) and also set one of the unknown bits to a known
value.

Fixes #11451
This commit is contained in:
Dan Smith 2024-08-31 13:12:46 -07:00 committed by Dan Smith
parent 1f455dd9f3
commit fddaaa00e3

View File

@ -548,6 +548,10 @@ class RT22Radio(chirp_common.CloneModeRadio):
_mem.set_raw("\xFF" * (_mem.size() // 8))
return
# Initialize the memory to a known-good state
_mem.fill_raw(b'\x00')
_mem.unknown5[0] = 0x80
_mem.rxfreq = mem.freq / 10
if mem.duplex == "off":