From f448e4cf8b7667db0d084b907a6e2e97b567e442 Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Thu, 12 May 2022 03:40:27 +0100 Subject: [PATCH] Fix minor issue with average RSSI measurement --- main/rf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/rf.cpp b/main/rf.cpp index 5fdff86..9e4e8ca 100644 --- a/main/rf.cpp +++ b/main/rf.cpp @@ -489,7 +489,7 @@ extern "C" xSemaphoreGive(CONS_Mutex); } } else // if no WAN reception expected or possible -#else // WITH_LORAWAN +#endif // WITH_LORAWAN // if(TimeSync_msTime()<260); { uint32_t RxRssiSum=0; uint16_t RxRssiCount=0; // measure the average RSSI for lower frequency do @@ -513,7 +513,7 @@ extern "C" xSemaphoreGive(CONS_Mutex); #endif } -#endif +// #endif // WITH_LORAWAN TRX.setModeStandby(); // switch to standy vTaskDelay(1);