reduce timeout again to 300sec, but sleep 10sec after timeout

This commit is contained in:
Joerg Lehmann 2020-06-03 17:05:46 +02:00
parent eb4da9d637
commit a8fe52fa0e
1 changed files with 3 additions and 3 deletions

View File

@ -688,12 +688,12 @@ void StartNewIteration() {
gLed.Set(LedPattern::TwoShort);
}
// Loop sending is in progress, timeout just in case after 900 seconds
// Loop sending is in progress, timeout just in case after 300 seconds
long start_time = millis();
if (config_data.debug_level > 0) {
gCatena.SafePrintf("waiting while send is in progress\n");
}
while (send_in_progress && ((millis() - start_time) < 900000))
while (send_in_progress && ((millis() - start_time) < 300000))
{
gCatena.poll();
yield();
@ -706,7 +706,7 @@ void StartNewIteration() {
LMIC_clrTxData();
// we sleep 10 seconds...
start_time = millis();
while (send_in_progress && ((millis() - start_time) < 10000))
while ((millis() - start_time) < 10000)
{
gCatena.poll();
yield();