From: Jan "Yenya" Kasprzak Date: Wed, 21 Nov 2012 20:12:26 +0000 (+0100) Subject: buttons: init state when suspended during user params setup X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=374c392b4af5f736b0752eccb93d16ce144028b1;p=bike-lights.git buttons: init state when suspended during user params setup --- diff --git a/firmware/buttons.c b/firmware/buttons.c index 2419e89..bcbec01 100644 --- a/firmware/buttons.c +++ b/firmware/buttons.c @@ -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,