[chirp_devel] [PATCH 1 of 2] [FT817] Tone freq not set correctly
Marco Filippi IZ3GME
Sun May 6 03:19:14 PDT 2012
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1336297827 -7200
# Node ID b19210a177fe4aa43addfc1e66879c2bd2ed40a8
# Parent 0c09f4d3633618eb8a06e151af0a7efa99feab39
[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 0c09f4d36336 -r b19210a177fe chirp/ft817.py
--- a/chirp/ft817.py gio mag 03 12:30:24 2012 -0700
+++ b/chirp/ft817.py dom mag 06 11:50:27 2012 +0200
@@ -79,7 +79,8 @@
u8 unknown5:2,
tx_mode:3,
tx_freq_range:3;
- u8 unknown6:2,
+ u8 unknown6:1,
+ unknown_toneflag:1,
tone:6;
u8 unknown7:1,
dcs:7;
@@ -557,6 +558,9 @@
_mem.fm_step = self.STEPSFM.index(mem.tuning_step)
except ValueError:
pass
+ # have to put this bit to 0 otherwise we get strange display in tone
+ # frequency (menu 83). See bug #88 and #163
+ _mem.unknown_toneflag = 0
_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 0c09f4d36336 -r b19210a177fe chirp/ft857.py
--- a/chirp/ft857.py gio mag 03 12:30:24 2012 -0700
+++ b/chirp/ft857.py dom mag 06 11:50:27 2012 +0200
@@ -210,9 +210,6 @@
def _set_tmode(self, mem, _mem):
- # have to put this bit to 0 otherwise we get strange display in tone
- # frequency (menu 83). See bug #88
- _mem.unknown_toneflag = 0
if mem.tmode != "Cross":
_mem.is_split_tone = 0
_mem.tmode = self.TMODES_REV[mem.tmode]
More information about the chirp_devel
mailing list