[chirp_devel] [PATCH 2 of 2] [FT817] Tone freq not set correctly
Marco Filippi IZ3GME
Sun May 6 03:19:15 PDT 2012
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1336298964 -7200
# Branch stable_0_2_x
# Node ID 34769f68944bcb5d71c142f8d2bf80ddbf05fa77
# Parent 2f182b9aa3f880c46e64a96280a2cfb4eb11f284
[FT817] Tone freq not set correctly
Same as #88 for FT857, to avoid code duplication fix code have been moved from
ft857 to its ancestor class
Fix bug #163
diff -r 2f182b9aa3f8 -r 34769f68944b chirp/ft817.py
--- a/chirp/ft817.py lun apr 23 09:42:33 2012 -0600
+++ b/chirp/ft817.py dom mag 06 12:09:24 2012 +0200
@@ -141,7 +141,8 @@
u8 unknown5:2,
tx_mode:3,
tx_freq_range:3;
- u8 unknown6:2,
+ u8 unknown6:1,
+ unknown_flag:1,
tone:6;
u8 unknown7:1,
dcs:7;
@@ -175,7 +176,8 @@
u8 unknown5:2,
tx_mode:3,
tx_freq_range:3;
- u8 unknown6:2,
+ u8 unknown6:1,
+ unknown_flag:1,
tone:6;
u8 unknown7:1,
dcs:7;
@@ -366,6 +368,8 @@
_mem.fm_step = self.STEPSFM.index(mem.tuning_step)
except ValueError:
pass
+ _mem.unknown_flag = 0 # have to put this bit to 0 otherwise we get strange display in tone
+ # frequency (menu 83) see bug #88 and #163
_mem.tone = chirp_common.TONES.index(mem.rtone)
_mem.dcs = chirp_common.DTCS_CODES.index(mem.dtcs)
_mem.rit = 0 # not supported in chirp
diff -r 2f182b9aa3f8 -r 34769f68944b chirp/ft857.py
--- a/chirp/ft857.py lun apr 23 09:42:33 2012 -0600
+++ b/chirp/ft857.py dom mag 06 12:09:24 2012 +0200
@@ -167,8 +167,6 @@
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