From 33fd31028ec1127c784d72cf4ecf5e3f6e193f10 Mon Sep 17 00:00:00 2001 From: Jim Unroe Date: Mon, 30 Oct 2023 22:03:02 -0400 Subject: [PATCH] ft2800.py: initialize unknown memory objects - fixes #10916 --- chirp/drivers/ft2800.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chirp/drivers/ft2800.py b/chirp/drivers/ft2800.py index 16dd752a8..a3a60bdf6 100644 --- a/chirp/drivers/ft2800.py +++ b/chirp/drivers/ft2800.py @@ -315,6 +315,12 @@ def set_memory(self, mem): # Empty -> Non-empty, so initialize _mem.set_raw("\x00" * (_mem.size() // 8)) + # initializing unknowns + _mem.unknown1 = (0xFF, 0xFF, 0xFF, 0xFF) + _mem.unknown2 = (0x00, 0x00) + _mem.unknown3 = 0x01 + _mem.unknown4 = 0x3C + _mem.freq = mem.freq / 10 _mem.offset = mem.offset / 100000 _mem.duplex = DUPLEX.index(mem.duplex)