On Anytone 868 and 878, enable tone squelch if an RxTone is set

This commit is contained in:
John Steele 2019-08-14 21:13:18 -04:00
parent 6c6910318f
commit b5961dffe5

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;