[chirp_devel] [PATCH] [termn8r] Add Anytone TERMN-8R Support #2437
Jim Unroe
Tue Apr 14 17:58:22 PDT 2015
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1429059493 14400
# Node ID 31a7494c324a347634c30cc3c9bded2ce83eeb21
# Parent 1406ad325647e30ca51af56adf21cac08a113a92
[termn8r] Add Anytone TERMN-8R Support #2437
Add an "extra" setting to get started
- Squelch (this is a per channel setting)
releated to #2437
diff -r 1406ad325647 -r 31a7494c324a chirp/drivers/anytone_ht.py
--- a/chirp/drivers/anytone_ht.py Fri Apr 10 22:22:52 2015 -0400
+++ b/chirp/drivers/anytone_ht.py Tue Apr 14 20:58:13 2015 -0400
@@ -259,6 +259,7 @@
POWER_LEVELS = [chirp_common.PowerLevel("High", watts=5),
chirp_common.PowerLevel("Mid", watts=2),
chirp_common.PowerLevel("Low", watts=1)]
+SQUELCH = ['%s' % x for x in range(0, 10)]
TMODES = ['', 'Tone', 'DTCS', '']
TONES = [62.5] + list(chirp_common.TONES)
@@ -387,6 +388,11 @@
BCLO[_mem.bcl]))
mem.extra.append(rs)
+ rs = RadioSetting("squelch", "Squelch",
+ RadioSettingValueList(SQUELCH,
+ SQUELCH[_mem.squelch]))
+ mem.extra.append(rs)
+
return mem
def set_memory(self, mem):
More information about the chirp_devel
mailing list