Align squelch values with rssi

This commit is contained in:
Niccolò Izzo 2021-01-29 11:28:21 +01:00
parent 421ff0e448
commit cf8e02506c
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ void rtx_taskFunc()
// Unmute speaker if rssi is greater than squelch value
float rssi = rtx_getRssi();
// sqlValue represents 15 steps from -140dBm to -70dBm
float rssi_squelch = -140.0f + rtxStatus.sqlLevel * 70.0f / 15.0f;
float rssi_squelch = -127.0f + rtxStatus.sqlLevel * 66.0f / 15.0f;
if((gpio_readPin(SPK_MUTE) == 1) && (rssi > rssi_squelch))
{