[chirp_devel] [PATCH] [VV-898] Add Settings to Leixen VV-898 Module - Part 4
# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1420143235 18000 # Node ID d70e7c07c0e0bc5e71487b748a9098386e1201cd # Parent 0ccddc8155647a3fb78d2eda13b098e7c2b59f94 [VV-898] Add Settings to Leixen VV-898 Module - Part 4
Add the following settings: - Open Beep - Roger Beep - Key Lock - CT/DCS Busy Lock - Alarm Key - Battery Save
related to #2149
diff -r 0ccddc815564 -r d70e7c07c0e0 chirp/leixen.py --- a/chirp/leixen.py Thu Jan 01 19:02:09 2015 +0100 +++ b/chirp/leixen.py Thu Jan 01 15:13:55 2015 -0500 @@ -35,8 +35,18 @@ u8 unknown:4, sql:4; // squelch level u8 unknown0x0185; - u8 unknown0x0186; - u8 unknown:6, + u8 obeep:1, // open beep + dw_off:1, // dual watch (inverted) + kbeep:1, // key beep + rbeep:1, // roger beep + unknown:2, + ctdcsb:1, // ct/dcs busy lock + unknown:1; + u8 alarm:1, // alarm key + unknown1:1, + aliasen_off:1, // alias enable (inverted) + save:1, // battery save + unknown2:2, mrcha:1, // mr/cha vfomr:1; // vfo/mr u8 keylock_off:1, // key lock (inverted) @@ -436,6 +446,7 @@
def _get_settings(self): _settings = self._memobj.settings + _msg = self._memobj.messages cfg_grp = RadioSettingGroup("cfg_grp", "Basic Settings") group = RadioSettingGroup("top", "All Settings", cfg_grp)
@@ -519,6 +530,25 @@ ABSEL_LIST[_settings.absel])) cfg_grp.append(rs)
+ rs = RadioSetting("obeep", "Open Beep", + RadioSettingValueBoolean(_settings.obeep)) + cfg_grp.append(rs) + rs = RadioSetting("rbeep", "Roger Beep", + RadioSettingValueBoolean(_settings.rbeep)) + cfg_grp.append(rs) + rs = RadioSetting("keylock_off", "Key Lock", + RadioSettingValueBoolean(not _settings.keylock_off)) + cfg_grp.append(rs) + rs = RadioSetting("ctdcsb", "CT/DCS Busy Lock", + RadioSettingValueBoolean(_settings.ctdcsb)) + cfg_grp.append(rs) + rs = RadioSetting("alarm", "Alarm Key", + RadioSettingValueBoolean(_settings.alarm)) + cfg_grp.append(rs) + rs = RadioSetting("save", "Battery Save", + RadioSettingValueBoolean(_settings.save)) + cfg_grp.append(rs) + return group
def get_settings(self): @@ -557,6 +587,8 @@ if element.has_apply_callback(): print "Using apply callback" element.run_apply_callback() + elif setting == "keylock_off": + setattr(obj, setting, not int(element.value)) else: print "Setting %s = %s" % (setting, element.value) setattr(obj, setting, element.value)
participants (1)
-
Jim Unroe