]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/buttons.c
buttons: init state when suspended during user params setup
[bike-lights.git] / firmware / buttons.c
index 2419e89e86dd83b2d1091094193e52dc797f0f78..bcbec0112cc67df1c8e5614f18144f0a02cc222a 100644 (file)
@@ -119,6 +119,7 @@ void init_buttons()
        button_start[0] = 0;
        button_start[1] = 0;
        prev_pin = _BV(PA3) | _BV(PA4);
+       user_params_state = 0;
 }
 
 static void handle_button(unsigned char button, unsigned char cur,