From c5ce6f11cbc041e90e53dd21912bbc82675b2e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hamal=20Dvo=C5=99=C3=A1k?= Date: Sat, 27 Jan 2024 11:06:49 +0100 Subject: [PATCH] Fix max RSSI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Hamal Dvořák --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 4ce2780..e17afdc 100644 --- a/src/main.c +++ b/src/main.c @@ -411,7 +411,7 @@ static void rf_rx(void) { unsigned assi0 = 0, assi1 = 0, assi2 = 0; - status.rssi_max = pow(127.5f * 8.0f * (1 << EXTRA_BITS), 2.0f); + status.rssi_max = pow(2.0f * 0.707f * 127.0f * (1 << EXTRA_BITS), 2.0f); #if HPF_ALPHA int hpI = 0, hpQ = 0;