Skip to content

Commit

Permalink
rt22: Fix tones not being enabled
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kk7ds committed Sep 1, 2024
1 parent 1f455dd commit b54cebf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chirp/drivers/retevis_rt22.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,10 @@ def set_memory(self, mem):
_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":
Expand Down

0 comments on commit b54cebf

Please sign in to comment.