From f8c9ed5e01da4ffc959880f830a195d47d6ff30c Mon Sep 17 00:00:00 2001 From: Dave Akerman Date: Mon, 10 Feb 2020 09:08:27 +0000 Subject: [PATCH] V1.8.35 - RSSI fix --- README.md | 5 +++++ gateway.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a6cbedf..b96dc94 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,11 @@ Many thanks to David Brooke for coding this feature and the AFC. Change History ============== +10/02/2020 - V1.8.35 +-------------------- + + Fix to RSSI calculation when SNR < 0 (thanks to Alan Hall) + 03/02/2020 - V1.8.34 -------------------- diff --git a/gateway.c b/gateway.c index 1ae7f27..b21ba24 100644 --- a/gateway.c +++ b/gateway.c @@ -46,7 +46,7 @@ #include "udpclient.h" #include "lifo_buffer.h" -#define VERSION "V1.8.34" +#define VERSION "V1.8.35" bool run = TRUE; // RFM98 @@ -1406,7 +1406,7 @@ int FixRSSI(int Channel, int RawRSSI, int SNR) if (SNR < 0) { - RSSI += SNR/4; + RSSI += SNR; } return RSSI;