/* 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;
// 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