From 3947b59881d42ef75257908001f538e3becdd596 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Thu, 30 Mar 2023 01:04:11 +0200 Subject: [PATCH] Add fix for emulation conditional build. Signed-off-by: Pol Henarejos --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 6858150..aba7634 100644 --- a/src/main.c +++ b/src/main.c @@ -309,6 +309,7 @@ int main(void) { execute_tasks(); neug_task(); do_flash(); +#ifndef ENABLE_EMULATION if (board_millis() > 1000) { // wait 1 second to boot up bool current_button_state = board_button_read(); if (current_button_state != button_pressed_state) { @@ -327,6 +328,7 @@ int main(void) { button_pressed_time = button_press = 0; } } +#endif } return 0;