From b54cebfe09bf5ab2d88177a9d25e9a37d937abc0 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Sat, 31 Aug 2024 13:12:46 -0700 Subject: [PATCH] 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 --- chirp/drivers/retevis_rt22.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chirp/drivers/retevis_rt22.py b/chirp/drivers/retevis_rt22.py index ac7ef5f80..90ce681df 100644 --- a/chirp/drivers/retevis_rt22.py +++ b/chirp/drivers/retevis_rt22.py @@ -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":