From 1b0514cdd2dc7e9e5d0d6f48ddf93054f22f0a58 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Tue, 9 Jul 2024 14:11:36 +0200 Subject: [PATCH] ksun_m6: Fix initialization of new memories Explicitly set a few extra bits to zero to initialize correctly new memory slots. _unk3/_unk4 seem to be part of compander/hopping respectively, even though only a single value for both is accepted. Setting _unk3 to 1 (compander:0b10) makes the radio ignore the channel completely. The original software also refuses to decode the slot and fail with a generic error. Setting _unk4 to 1 (hopping:0b10) works on the radio, but still causes the original software to fail with an error. --- chirp/drivers/ksun_m6.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chirp/drivers/ksun_m6.py b/chirp/drivers/ksun_m6.py index 62b38ce64..590584d9e 100644 --- a/chirp/drivers/ksun_m6.py +++ b/chirp/drivers/ksun_m6.py @@ -55,10 +55,8 @@ skip: 1, tx_tone: 2, tx_code: 12; - u8 _unk3: 1, - compander: 1, - _unk4: 1, - hopping: 1, + u8 compander: 2, // only 0b00/0b01 allowed + hopping: 2, // only 0b00/0b01 allowed scrambler: 4; } memory[80]; """