]> www.fi.muni.cz Git - bike-lights.git/commitdiff
buttons: init state when suspended during user params setup
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 20:12:26 +0000 (21:12 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 20:12:26 +0000 (21:12 +0100)
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,