X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=firmware%2Fbuttons.c;h=bcbec0112cc67df1c8e5614f18144f0a02cc222a;hb=374c392b4af5f736b0752eccb93d16ce144028b1;hp=2419e89e86dd83b2d1091094193e52dc797f0f78;hpb=a11f1a45b8d8af9912d869243128118be864e375;p=bike-lights.git 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,