mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 02:27:21 +00:00
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:
parent
1f455dd9f3
commit
fddaaa00e3
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user