increase timeout from 300 to 900 seconds

This commit is contained in:
Joerg Lehmann 2020-06-03 08:56:10 +02:00
parent 59ce7ee44d
commit fcfc596506
2 changed files with 3 additions and 3 deletions

View File

@ -688,12 +688,12 @@ void StartNewIteration() {
gLed.Set(LedPattern::TwoShort); gLed.Set(LedPattern::TwoShort);
} }
// Loop sending is in progress, timeout just in case after 300 seconds // Loop sending is in progress, timeout just in case after 900 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) < 300000)) while (send_in_progress && ((millis() - start_time) < 900000))
{ {
gCatena.poll(); gCatena.poll();
yield(); yield();

View File

@ -56,7 +56,7 @@ enum {
| |
\****************************************************************************/ \****************************************************************************/
static const int32_t fwVersion = 20200602; static const int32_t fwVersion = 20200603;
static const byte INIT_PACKAGE_INTERVAL = 100; // send an init package every 100 packages; static const byte INIT_PACKAGE_INTERVAL = 100; // send an init package every 100 packages;
static const byte MAX_VALUES_TO_SEND = 8; static const byte MAX_VALUES_TO_SEND = 8;