Skip to content

Commit

Permalink
Fix minor issue with average RSSI measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
pjalocha committed May 12, 2022
1 parent 9167659 commit f448e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/rf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -513,7 +513,7 @@ extern "C"
xSemaphoreGive(CONS_Mutex);
#endif
}
#endif
// #endif // WITH_LORAWAN

TRX.setModeStandby(); // switch to standy
vTaskDelay(1);
Expand Down

0 comments on commit f448e4c

Please sign in to comment.