cancel transactions at timeout
This commit is contained in:
parent
6d3053d8ad
commit
ab86c843b1
|
|
@ -703,6 +703,7 @@ void StartNewIteration() {
|
|||
if (config_data.debug_level > 0) {
|
||||
gCatena.SafePrintf("looks like we timed out waiting for sending to finish...\n", wait_time);
|
||||
}
|
||||
LMIC_clrTxData();
|
||||
send_in_progress = false;
|
||||
}
|
||||
wait_time = (uint32_t)((millis() - start_time) / 1000);
|
||||
|
|
@ -887,12 +888,12 @@ void doSleepAlert(const bool fDeepSleep)
|
|||
}
|
||||
|
||||
// we wait an extra five seconds...
|
||||
uint32_t tNow = millis();
|
||||
while (uint32_t(millis() - tNow) < 5000)
|
||||
{
|
||||
gCatena.poll();
|
||||
yield();
|
||||
}
|
||||
//uint32_t tNow = millis();
|
||||
//while (uint32_t(millis() - tNow) < 5000)
|
||||
//{
|
||||
// gCatena.poll();
|
||||
// yield();
|
||||
//}
|
||||
|
||||
|
||||
if (config_data.debug_level > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue