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:
commit
8bc1dde781
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