From 014b5cfa49f3697ad13d717949327e4b790e20f9 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Wed, 21 Nov 2012 23:12:31 +0100 Subject: [PATCH] buttons.c: fix for setup timeout we need to test whether the timeout is reached only when the setup is in progress ;-) --- firmware/buttons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/buttons.c b/firmware/buttons.c index bcbec01..90f5701 100644 --- a/firmware/buttons.c +++ b/firmware/buttons.c @@ -159,7 +159,7 @@ void timer_check_buttons() prev_pin = pin; - if (jiffies - user_params_starttime > 500) { + if (user_params_state && jiffies - user_params_starttime > 500) { user_params_state = 0; set_status_led(0, status_pattern_select(0)); set_status_led(1, status_pattern_select(1)); -- 2.39.3