Merge pull request #35 from jdsteele/anytone-tone-squelch

On Anytone 868 and 878, enable tone squelch if an RxTone is set
This commit is contained in:
Serge Vakulenko 2019-08-14 20:41:13 -07:00 committed by GitHub
commit 8bc1dde781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1595,6 +1595,12 @@ static void setup_channel(radio_device_t *radio, int i, int mode, char *name,
}
}
if (ch->rx_ctcss == 0 && ch->rx_dcs == 0) {
ch->squelch_mode = SQ_CARRIER;
} else {
ch->squelch_mode = SQ_TONE;
}
if (txtone > 0) { // Transmit DCS
ch->tx_dcs = 1;
ch->dcs_transmit = txtone - 1;