From 7de98552d1003de077fde1e644cd610c0b95b614 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 5 Jan 2026 19:39:35 +0100 Subject: [PATCH] Fix button logic. Signed-off-by: Pol Henarejos --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 08e26e1..ecdc873 100644 --- a/src/main.c +++ b/src/main.c @@ -203,9 +203,9 @@ bool wait_button() { uint32_t button_timeout = 0; if (phy_data.up_btn_present) { button_timeout = phy_data.up_btn * 1000; - if (button_timeout == 0) { - return false; - } + } + if (button_timeout == 0) { + return false; } uint32_t start_button = board_millis(); bool timeout = false;