mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
Add fix for emulation conditional build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -309,6 +309,7 @@ int main(void) {
|
|||||||
execute_tasks();
|
execute_tasks();
|
||||||
neug_task();
|
neug_task();
|
||||||
do_flash();
|
do_flash();
|
||||||
|
#ifndef ENABLE_EMULATION
|
||||||
if (board_millis() > 1000) { // wait 1 second to boot up
|
if (board_millis() > 1000) { // wait 1 second to boot up
|
||||||
bool current_button_state = board_button_read();
|
bool current_button_state = board_button_read();
|
||||||
if (current_button_state != button_pressed_state) {
|
if (current_button_state != button_pressed_state) {
|
||||||
@@ -327,6 +328,7 @@ int main(void) {
|
|||||||
button_pressed_time = button_press = 0;
|
button_pressed_time = button_press = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user