[chirp_devel] [PATCH 0 of 2 ] [FT817] Fix of bug #163
The following two patch are the fixes of the same bug, one for daily and one for 2.2 stable releases
# HG changeset patch # User Marco Filippi iz3gme.marco@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]
# HG changeset patch # User Marco Filippi iz3gme.marco@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]
participants (1)
-
Marco Filippi IZ3GME