# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1422216784 18000 # Node ID 41494ef344301f609685291ecc1d665e2862ff63 # Parent 0d6ae97ab5ae1c1ba1677885a95d3b5a4a12bd3c [VV-898] Add Settings to Leixen VV-898 Module - Part 10
Add the following settings: - Squelch Base Value (UHF) - Squelch Base Value (VHF)
related to #2149
diff -r 0d6ae97ab5ae -r 41494ef34430 chirp/leixen.py --- a/chirp/leixen.py Sun Jan 25 14:01:49 2015 -0500 +++ b/chirp/leixen.py Sun Jan 25 15:13:04 2015 -0500 @@ -108,6 +108,13 @@ unknown:4; } settings;
+#seekto 0x01cd; +struct { + u8 rssi136; // squelch base level (vhf) + u8 unknown0x01ce; + u8 rssi400; // squelch base level (uhf) +} service; + #seekto 0x0900; struct { char user1[7]; // user message 1 @@ -519,6 +526,7 @@
def _get_settings(self): _settings = self._memobj.settings + _service = self._memobj.service _msg = self._memobj.messages cfg_grp = RadioSettingGroup("cfg_grp", "Basic Settings") adv_grp = RadioSettingGroup("adv_grp", "Advanced Settings") @@ -700,6 +708,13 @@ RadioSettingValueBoolean(_settings.dtmfst)) adv_grp.append(rs)
+ rs = RadioSetting("service.rssi400", "Squelch Base Level (UHF)", + RadioSettingValueInteger(0, 255,_service.rssi400)) + adv_grp.append(rs) + rs = RadioSetting("service.rssi136", "Squelch Base Level (VHF)", + RadioSettingValueInteger(0, 255,_service.rssi136)) + adv_grp.append(rs) + # # Key Settings #