# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1357866967 18000 # Node ID 7d298d6617e8b3d4128adb3aaa6c773d6e7b5c49 # Parent 8eaed0bc411cfc816fd133afd33787fafb2ab2ef [uv5r] Support VOICE Settings Change Implemented with BFB251 Firmware #421
diff -r 8eaed0bc411c -r 7d298d6617e8 chirp/uv5r.py --- a/chirp/uv5r.py Thu Jan 10 15:15:05 2013 -0800 +++ b/chirp/uv5r.py Thu Jan 10 20:16:07 2013 -0500 @@ -143,6 +143,7 @@ STEPS = [2.5, 5.0, 6.25, 10.0, 12.5, 25.0] STEP_LIST = [str(x) for x in STEPS] TIMEOUT_LIST = ["%s sec" % x for x in range(15, 615, 15)] +VOICE_LIST = ["Off", "English", "Chinese"] DTMFST_LIST = ["OFF", "DT-ST", "ANI-ST", "DT+ANI"] RESUME_LIST = ["TO", "CO", "SE"] MODE_LIST = ["Channel", "Name", "Frequency"] @@ -158,6 +159,7 @@ SETTING_LISTS = { "step" : STEP_LIST, "timeout" : TIMEOUT_LIST, + "voice" : VOICE_LIST, "dtmfst" : DTMFST_LIST, "screv" : RESUME_LIST, "mdfa" : MODE_LIST, @@ -645,10 +647,16 @@ TIMEOUT_LIST[_settings.timeout])) basic.append(rs)
- rs = RadioSetting("voice", "Voice", - RadioSettingValueBoolean(_settings.voice)) - advanced.append(rs) - + if self._my_version() >= 251: + rs = RadioSetting("voice", "Voice", + RadioSettingValueList(VOICE_LIST, + VOICE_LIST[_settings.voice])) + advanced.append(rs) + else: + rs = RadioSetting("voice", "Voice", + RadioSettingValueBoolean(_settings.voice)) + advanced.append(rs) + rs = RadioSetting("screv", "Scan Resume", RadioSettingValueList(RESUME_LIST, RESUME_LIST[_settings.screv]))