# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1459127814 14400 # Node ID 1171fff35e0c4f98716b22de83fd763edca89349 # Parent c7ad0f850fc95ac27e98ff47b127127bcd60acfe [BTECH] sigcode bug fix for out-of-range value #3015
This patch includes the following changes:
Bug fixes - Address when OEM software put an out-of-range vale for sigcode (0x*F is reset to 0x*0)
diff -r c7ad0f850fc9 -r 1171fff35e0c chirp/drivers/btech.py --- a/chirp/drivers/btech.py Sun Mar 27 20:50:56 2016 -0400 +++ b/chirp/drivers/btech.py Sun Mar 27 21:16:54 2016 -0400 @@ -870,10 +870,12 @@ PTTID_LIST[_mem.pttid])) mem.extra.append(pttid)
+ # validating scode + scode = _mem.scode if _mem.scode != 15 else 0 pttidcode = RadioSetting("scode", "PTT ID signal code", RadioSettingValueList( PTTIDCODE_LIST, - PTTIDCODE_LIST[_mem.scode])) + PTTIDCODE_LIST[scode])) mem.extra.append(pttidcode)
optsig = RadioSetting("optsig", "Optional signaling",