mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-22 19:18:56 +00:00
Make squelch more sensitive in HF bands.
This commit is contained in:
parent
1a689cda43
commit
c77a9c4ac2
15
radio.c
15
radio.c
@ -470,9 +470,18 @@ void RADIO_ConfigureSquelchAndOutputPower(VFO_Info_t *pInfo)
|
|||||||
glitch_open = (glitch_open * 4) / 3;
|
glitch_open = (glitch_open * 4) / 3;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rssi_close = (rssi_open * 9) / 10;
|
// make squelch more sensitive for HF bands
|
||||||
noise_close = (noise_open * 10) / 9;
|
if(Band <= BAND1_50MHz) {
|
||||||
glitch_close = (glitch_open * 10) / 9;
|
rssi_close = (rssi_open * 5) / 6;
|
||||||
|
noise_close = (noise_open * 6) / 5;
|
||||||
|
glitch_close = (glitch_open * 6) / 5;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rssi_close = (rssi_open * 9) / 10;
|
||||||
|
noise_close = (noise_open * 10) / 9;
|
||||||
|
glitch_close = (glitch_open * 10) / 9;
|
||||||
|
}
|
||||||
|
|
||||||
// ensure the 'close' threshold is lower than the 'open' threshold
|
// ensure the 'close' threshold is lower than the 'open' threshold
|
||||||
if (rssi_close == rssi_open && rssi_close >= 2)
|
if (rssi_close == rssi_open && rssi_close >= 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user