From 875b1fef025a6679cceb2cd8eab87583a1b37942 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Fri, 12 Jun 2020 19:54:43 +0200 Subject: [PATCH] do not go to deep sleep if we do a stop_iterations --- mini-beieli-node.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini-beieli-node.ino b/mini-beieli-node.ino index 88bb56c..a32bc6c 100644 --- a/mini-beieli-node.ino +++ b/mini-beieli-node.ino @@ -771,7 +771,7 @@ void StartNewIteration() { gCatena.SafePrintf("LMIC.seqnoUp: %d, LMIC.seqnoDn: %d\n",LMIC.seqnoUp, LMIC.seqnoDn); } - if (!fUsbPower) { + if (!fUsbPower && !stop_iterations) { DoDeepSleep(sleep_time_sec); if (! stop_iterations) { start_new_iteration = true;