do not go to deep sleep if we do a stop_iterations

This commit is contained in:
Joerg Lehmann 2020-06-12 19:54:43 +02:00
parent 9cc59aadbb
commit 875b1fef02
1 changed files with 1 additions and 1 deletions

View File

@ -771,7 +771,7 @@ void StartNewIteration() {
gCatena.SafePrintf("LMIC.seqnoUp: %d, LMIC.seqnoDn: %d\n",LMIC.seqnoUp, LMIC.seqnoDn); gCatena.SafePrintf("LMIC.seqnoUp: %d, LMIC.seqnoDn: %d\n",LMIC.seqnoUp, LMIC.seqnoDn);
} }
if (!fUsbPower) { if (!fUsbPower && !stop_iterations) {
DoDeepSleep(sleep_time_sec); DoDeepSleep(sleep_time_sec);
if (! stop_iterations) { if (! stop_iterations) {
start_new_iteration = true; start_new_iteration = true;