LoRa_Miun_Lib

Dependents:   Light

Fork of LoRa_Miun_lib by BIN WANG

Revision:
2:3ecde145ebf2
Parent:
1:5d835ae2a591
--- a/LoRa.cpp	Thu Apr 20 07:02:20 2017 +0000
+++ b/LoRa.cpp	Wed May 03 08:49:14 2017 +0000
@@ -105,7 +105,7 @@
 {
     uint32_t sleep_time = std::max(interval_s*1000, (uint32_t)dot->getNextTxMs()) / 1000;
         logInfo("sleep %u seconds until next free channel",sleep_time);
-    dot->sleep(sleep_time, mDot::RTC_ALARM, false);
+    dot->sleep(sleep_time, mDot::RTC_ALARM, true);
 }
 
 void MIUN::LoRa::sleepWaitingNextFreeChannel()