[chirp_devel] [PATCH] [TYT-9800] fix tone squelch (CTCSS Decode) not working #3007
# HG changeset patch # User Jens Jensen af5mi@yahoo.com # Date 1447761332 21600 # Tue Nov 17 05:55:32 2015 -0600 # Node ID 833076e84df1b34708e44ddce138638faef6e837 # Parent 02cff0d00d9ac87fdbd598fbf337b8fd7df3f652 [TYT-9800] fix tone squelch (CTCSS Decode) not working #3007
As described in #3007, when channel tone mode set to TSQL (CTCSS Encode & Decode) or DTCS (DCS), the squelch is being opened for any carrier, not just ones with specified tone.
Appears there is additional field in channel memory which specifies squelch mode, carrier or tone, which also needs to be explicitly set by Chirp whenever using TSQL or DTCS tone modes, as this is the intended behavior of these modes.
diff -r 02cff0d00d9a -r 833076e84df1 chirp/drivers/th9800.py --- a/chirp/drivers/th9800.py Thu Oct 22 15:16:41 2015 -0700 +++ b/chirp/drivers/th9800.py Tue Nov 17 05:55:32 2015 -0600 @@ -44,8 +44,8 @@ scramb:1, compand:1, emphasis:1 - unknown1a:1, - unknown1b:2; + unknown1a:2, + sqlmode:1; // carrier, tone u8 rptmod:2, // off, -, + reverse:1, talkaround:1, @@ -352,6 +352,10 @@ _mem.tx_freq = mem.freq / 10
_mem.tmode = TMODES.index(mem.tmode) + if mem.tmode == "TSQL" or mem.tmode == "DTCS": + _mem.sqlmode = 1 + else: + _mem.sqlmode = 0 _mem.ctcss = mem.rtone * 10 _mem.dtcs = mem.dtcs _mem.dtcs_pol = DTCS_POLARITY.index(mem.dtcs_polarity)
participants (1)
-
Jens Jensen