[chirp_devel] [PATCH 0 of 1] FT857 - This patch (should) correct bug #88
There is an unknown flag preceding the tone that give strange results in tone frequency (menu 83) when set to 1, this happens on all clean memory (filled by 0xFF) which are populated by chirp. This patch simply force the bit to 0.
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1332958399 -7200 # Node ID 99aee560bc34715ca9dd89058c5842181681a70f # Parent ef05d4887104aa204d56bfa374379e20f0b1daa8 Correction of bug #88 Tone freq not set correctly
diff -r ef05d4887104 -r 99aee560bc34 chirp/ft857.py --- a/chirp/ft857.py Tue Mar 27 07:13:02 2012 -0700 +++ b/chirp/ft857.py Wed Mar 28 20:13:19 2012 +0200 @@ -49,7 +49,8 @@ u8 unknown4:2, tx_mode:3, tx_freq_range:3; - u8 unknown5:2, + u8 unknown5:1, + unknown_flag:1, tone:6; u8 unknown6:8; u8 unknown7:1, @@ -164,6 +165,8 @@ mem.cross_mode = self.CROSS_MODES[int(_mem.tmode)]
def set_tmode(self, mem, _mem): + _mem.unknown_flag = 0 # have to put this bit to 0 otherwise we get strange display in tone frequency (menu 83) + # see bug #88 if mem.tmode != "Cross": _mem.is_split_tone = 0 _mem.tmode = self.TMODES_REV[mem.tmode]
participants (2)
-
Dan Smith
-
Marco Filippi IZ3GME