On Anytone 868 and 878, enable tone squelch if an RxTone is set
This commit is contained in:
parent
6c6910318f
commit
b5961dffe5
6
d868uv.c
6
d868uv.c
@ -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
|
if (txtone > 0) { // Transmit DCS
|
||||||
ch->tx_dcs = 1;
|
ch->tx_dcs = 1;
|
||||||
ch->dcs_transmit = txtone - 1;
|
ch->dcs_transmit = txtone - 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user