From 580ba5e577f246a28b3ceb18c2cc33b8e801f851 Mon Sep 17 00:00:00 2001 From: r4 Date: Mon, 18 Apr 2022 19:32:11 +0200 Subject: [PATCH] reset wait time after waiting --- spybug/spybug.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spybug/spybug.ino b/spybug/spybug.ino index 248b78b..32c8453 100644 --- a/spybug/spybug.ino +++ b/spybug/spybug.ino @@ -412,6 +412,9 @@ void setup() { Serial.flush(); /* Using this function, an Arduino Nano (with its voltage regulator and TTL module removed) draws ~6μA. */ low_power_sleep_minutes(settings.recording_delay); + /* Reset wait time. */ + settings.recording_delay = 0; + save_settings(); } // Activate Components #ifdef PIN_COMPONENT_SWITCH