reduce timeout again to 300sec, but sleep 10sec after timeout
This commit is contained in:
@@ -688,12 +688,12 @@ void StartNewIteration() {
|
|||||||
gLed.Set(LedPattern::TwoShort);
|
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();
|
long start_time = millis();
|
||||||
if (config_data.debug_level > 0) {
|
if (config_data.debug_level > 0) {
|
||||||
gCatena.SafePrintf("waiting while send is in progress\n");
|
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();
|
gCatena.poll();
|
||||||
yield();
|
yield();
|
||||||
@@ -706,7 +706,7 @@ void StartNewIteration() {
|
|||||||
LMIC_clrTxData();
|
LMIC_clrTxData();
|
||||||
// we sleep 10 seconds...
|
// we sleep 10 seconds...
|
||||||
start_time = millis();
|
start_time = millis();
|
||||||
while (send_in_progress && ((millis() - start_time) < 10000))
|
while ((millis() - start_time) < 10000)
|
||||||
{
|
{
|
||||||
gCatena.poll();
|
gCatena.poll();
|
||||||
yield();
|
yield();
|
||||||
|
|||||||
Reference in New Issue
Block a user