From c77a9c4ac25e9dcae194be147ae039b2f1c1a5ed Mon Sep 17 00:00:00 2001 From: Nunu Date: Mon, 1 Jan 2024 19:58:42 +0100 Subject: [PATCH] Make squelch more sensitive in HF bands. --- radio.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/radio.c b/radio.c index 9ae8854..fbfcdbb 100644 --- a/radio.c +++ b/radio.c @@ -470,9 +470,18 @@ void RADIO_ConfigureSquelchAndOutputPower(VFO_Info_t *pInfo) glitch_open = (glitch_open * 4) / 3; #endif - rssi_close = (rssi_open * 9) / 10; - noise_close = (noise_open * 10) / 9; - glitch_close = (glitch_open * 10) / 9; + // make squelch more sensitive for HF bands + if(Band <= BAND1_50MHz) { + 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 if (rssi_close == rssi_open && rssi_close >= 2)