Fix minor issue with average RSSI measurement

pull/49/head
Pawel Jalocha 2022-05-12 03:40:27 +01:00
rodzic 916765929b
commit f448e4cf8b
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -489,7 +489,7 @@ extern "C"
xSemaphoreGive(CONS_Mutex); } xSemaphoreGive(CONS_Mutex); }
} }
else // if no WAN reception expected or possible else // if no WAN reception expected or possible
#else // WITH_LORAWAN #endif // WITH_LORAWAN
// if(TimeSync_msTime()<260); // if(TimeSync_msTime()<260);
{ uint32_t RxRssiSum=0; uint16_t RxRssiCount=0; // measure the average RSSI for lower frequency { uint32_t RxRssiSum=0; uint16_t RxRssiCount=0; // measure the average RSSI for lower frequency
do do
@ -513,7 +513,7 @@ extern "C"
xSemaphoreGive(CONS_Mutex); xSemaphoreGive(CONS_Mutex);
#endif #endif
} }
#endif // #endif // WITH_LORAWAN
TRX.setModeStandby(); // switch to standy TRX.setModeStandby(); // switch to standy
vTaskDelay(1); vTaskDelay(1);