Fix max RSSI

Signed-off-by: Jan Hamal Dvořák <mordae@anilinux.org>
This commit is contained in:
Jan Hamal Dvořák 2024-01-27 11:06:49 +01:00
parent dc03f5e1b4
commit c5ce6f11cb

View file

@ -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;