Skip to content

Commit

Permalink
ksun_m6: Fix initialization of new memories
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wavexx authored and kk7ds committed Aug 7, 2024
1 parent 1eee07b commit a8242df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chirp/drivers/ksun_m6.py
Original file line number Diff line number Diff line change
Expand Up @@ -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];
"""
Expand Down

0 comments on commit a8242df

Please sign in to comment.