
# HG changeset patch # User Filippi Marco iz3gme.marco@gmail.com # Date 1335987270 -7200 # Node ID 153bab41bfb913c0b6f5bf9063ffe8aec5ec540c # Parent dc9edca7b05c7a555e53f7c3a8d84f1b88c498f6 [FT857] Don't complain during get memory if current txtone is out of range part of Feature #100
diff -r dc9edca7b05c -r 153bab41bfb9 chirp/ft857.py --- a/chirp/ft857.py Wed May 02 21:31:54 2012 +0200 +++ b/chirp/ft857.py Wed May 02 21:34:30 2012 +0200 @@ -202,7 +202,12 @@ else: mem.tmode = "Cross" mem.cross_mode = self.CROSS_MODES[int(_mem.tmode)] - mem.ctone = chirp_common.TONES[_mem.txtone] + # don't want to fail for this + try: + mem.ctone = chirp_common.TONES[_mem.txtone] + except IndexError: + mem.ctone = chirp_common.TONES[0] +
def _set_tmode(self, mem, _mem): # have to put this bit to 0 otherwise we get strange display in tone