From a8fe52fa0e6c555ebdeeb2c68639d1e7a06e6432 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Wed, 3 Jun 2020 17:05:46 +0200 Subject: [PATCH] reduce timeout again to 300sec, but sleep 10sec after timeout --- mini-beieli-node.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mini-beieli-node.ino b/mini-beieli-node.ino index 6e63a67..5f154cf 100644 --- a/mini-beieli-node.ino +++ b/mini-beieli-node.ino @@ -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();