[chirp_devel] [PATCH] [UV-5R] Add Support for the Squelch Tail Eliminate Setting
Jim Unroe
Tue Jan 21 17:05:11 PST 2014
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1390352553 18000
# Node ID 975b3b24ad7f89c84465de7f3e222f436c811437
# Parent b1b3a5e7255462ac5a00ceea154ee97d1123b0e1
[UV-5R] Add Support for the Squelch Tail Eliminate Setting
expose STE setting in structure
add STE setting
#1387
diff -r b1b3a5e72554 -r 975b3b24ad7f chirp/uvb5.py
--- a/chirp/uvb5.py Tue Jan 21 19:01:54 2014 -0500
+++ b/chirp/uvb5.py Tue Jan 21 20:02:33 2014 -0500
@@ -81,7 +81,10 @@
mdf_a:2,
unknown_1:2,
txtdr:2;
- u8 sidetone;
+ u8 unknown_2:4,
+ ste_disabled:1,
+ unknown_3:2,
+ sidetone:1;
u8 vox;
u8 unk1;
u8 mem_chan_a;
@@ -605,6 +608,10 @@
RadioSettingValueBoolean(_settings.sidetone))
basic.append(rs)
+ rs = RadioSetting("ste_disabled", "Squelch Tail Eliminate",
+ RadioSettingValueBoolean(not _settings.ste_disabled))
+ basic.append(rs)
+
_limit = int(self._memobj.limits.lower_vhf) / 10
rs = RadioSetting("limits.lower_vhf", "VHF Lower Limit (MHz)",
RadioSettingValueInteger(136, 174, _limit))
@@ -731,6 +738,10 @@
val = not _settings.beep_tone_disabled
print "Setting %s = %s" % (setting, val)
setattr(obj, setting, val)
+ elif setting == "ste_disabled":
+ val = not _settings.ste_disabled
+ print "Setting %s = %s" % (setting, val)
+ setattr(obj, setting, val)
else:
print "Setting %s = %s" % (setting, element.value)
setattr(obj, setting, element.value)
More information about the chirp_devel
mailing list