# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1420144536 18000 # Node ID 3ddffb451cac536d126a8dd84dbeeed75a4a0fe7 # Parent d70e7c07c0e0bc5e71487b748a9098386e1201cd [VV-898] Add Settings to Leixen VV-898 Module - Part 5
Add the following settings: - Key Beep - Reset Enable - Small Font - Alias Enable - TX Stop - DW (dual watch)
related to #2149
diff -r d70e7c07c0e0 -r 3ddffb451cac chirp/leixen.py --- a/chirp/leixen.py Thu Jan 01 15:13:55 2015 -0500 +++ b/chirp/leixen.py Thu Jan 01 15:35:36 2015 -0500 @@ -76,6 +76,11 @@ keymshort:4; // m key short press u8 unknown:6, monitor:2; // monitor + u8 unknown1:3, + reset:1, // reset enable + unknown2:1, + keypadmic_off:1, // keypad mic (inverted) + unknown3:2; } settings;
#seekto 0x0900; @@ -548,6 +553,24 @@ rs = RadioSetting("save", "Battery Save", RadioSettingValueBoolean(_settings.save)) cfg_grp.append(rs) + rs = RadioSetting("kbeep", "Key Beep", + RadioSettingValueBoolean(_settings.kbeep)) + cfg_grp.append(rs) + rs = RadioSetting("reset", "Reset Enable", + RadioSettingValueBoolean(_settings.reset)) + cfg_grp.append(rs) + rs = RadioSetting("smfont_off", "Small Font", + RadioSettingValueBoolean(not _settings.smfont_off)) + cfg_grp.append(rs) + rs = RadioSetting("aliasen_off", "Alias Enable", + RadioSettingValueBoolean(not _settings.aliasen_off)) + cfg_grp.append(rs) + rs = RadioSetting("txstop_off", "TX Stop", + RadioSettingValueBoolean(not _settings.txstop_off)) + cfg_grp.append(rs) + rs = RadioSetting("dw_off", "Dual Watch", + RadioSettingValueBoolean(not _settings.dw_off)) + cfg_grp.append(rs)
return group
@@ -589,6 +612,14 @@ element.run_apply_callback() elif setting == "keylock_off": setattr(obj, setting, not int(element.value)) + elif setting == "smfont_off": + setattr(obj, setting, not int(element.value)) + elif setting == "aliasen_off": + setattr(obj, setting, not int(element.value)) + elif setting == "txstop_off": + setattr(obj, setting, not int(element.value)) + elif setting == "dw_off": + setattr(obj, setting, not int(element.value)) else: print "Setting %s = %s" % (setting, element.value) setattr(obj, setting, element.value)