From 7e32ea320fb6a24b21ef267e16ae9a340b9aa5b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 24 Mar 2021 15:46:45 +0100 Subject: [PATCH] always enable nonstop on boot --- FINAL2013V2.ino | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/FINAL2013V2.ino b/FINAL2013V2.ino index 5415ece..3e5dc6b 100644 --- a/FINAL2013V2.ino +++ b/FINAL2013V2.ino @@ -62,7 +62,7 @@ const int ledsArray[] = { RELAY_GREEN_LEDS, RELAY_RED_LEDS, RELAY_YELLOW_LEDS }; /* activeSelection is the variable that holds the active output of the switch it is declared as an attribute that keeps its value between arduino resets */ -switchSelection_t activeSelection __attribute__ ((section (".noinit"))); +switchSelection_t activeSelection = 0; // __attribute__ ((section (".noinit"))); // variables and timers for blinking selection (selected but not confirmed) switchSelection_t blinkingSelection = nonstop; @@ -158,9 +158,6 @@ void webCmd(WebServer &server, WebServer::ConnectionType type, char *url_tail, b // setup function void setup() { - // make sure that activeSelection holds something valid -// if (!(activeSelection > nonstop) || !(activeSelection < _NbrSwitchSelections)) -// activeSelection = nonstop; blinkingSelection = activeSelection = nonstop; // open serial communication for debugging -- 2.39.2