cancel transactions at timeout

This commit is contained in:
Joerg Lehmann 2020-06-01 19:04:39 +02:00
parent 6d3053d8ad
commit ab86c843b1
1 changed files with 7 additions and 6 deletions

View File

@ -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) {