# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1422153076 18000 # Node ID 277376153d0f0fb7c564140cb46648a86fedaf67 # Parent a90469e7944d1d8788458f50f1c9f49f66a83f58 [VV-898] Add Settings to Leixen VV-898 Module - Part 8
Add the following settings: - VOX Gain Level - VOX Delay Time - VOX Inhibit on Receive
related to #2149
diff -r a90469e7944d -r 277376153d0f chirp/leixen.py --- a/chirp/leixen.py Sat Jan 24 19:31:46 2015 -0500 +++ b/chirp/leixen.py Sat Jan 24 21:31:16 2015 -0500 @@ -66,7 +66,8 @@ u8 apo:4, // auto power off tot:4; // time out timer u8 unknown0x018C; - u8 unknown0x018D; + u8 voxdt:4, // vox delay time + voxgain:4; // vox gain u8 unknown0x018E; u8 unknown0x018F; u8 unknown:3, @@ -165,6 +166,8 @@ LAMP_LIST = ["OFF", "KEY", "CONT"] KEYLOCKM_LIST = ["K+S", "PTT", "KEY", "ALL"] ABSEL_LIST = ["B Channel", "A Channel"] +VOXGAIN_LIST = ["%s" % x for x in range(1, 9)] +VOXDT_LIST = ["%s seconds" % x for x in range(1, 5)]
LPTIME_LIST = ["%i miliseconds" % x for x in range(500, 2600, 100)] PFKEYLONG_LIST = ["OFF", @@ -638,6 +641,17 @@ rs = RadioSetting("keypadmic_off", "Keypad MIC", RadioSettingValueBoolean(not _settings.keypadmic_off)) cfg_grp.append(rs) + rs = RadioSetting("voxgain", "VOX Gain", + RadioSettingValueList(VOXGAIN_LIST, + VOXGAIN_LIST[_settings.voxgain])) + cfg_grp.append(rs) + rs = RadioSetting("voxdt", "VOX Delay Time", + RadioSettingValueList(VOXDT_LIST, + VOXDT_LIST[_settings.voxdt])) + cfg_grp.append(rs) + rs = RadioSetting("vir", "VOX Inhibit on Receive", + RadioSettingValueBoolean(_settings.vir)) + cfg_grp.append(rs)
# # Key Settings