[chirp_devel] [PATCH 1 of 1] Correction of bug #88 Tone freq not set correctly

Marco Filippi IZ3GME
Wed Mar 28 11:20:17 PDT 2012


# HG changeset patch
# User Marco Filippi <iz3gme.marco at 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]



More information about the chirp_devel mailing list