From 8905d173b39627258dde2dac42fa900f7a1c0361 Mon Sep 17 00:00:00 2001 From: "Jasper v. Blanckenburg" Date: Sat, 18 Nov 2023 14:52:53 +0100 Subject: [PATCH] Use only left button for screen cycling --- Core/Src/ui.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/Src/ui.c b/Core/Src/ui.c index 4195690..8ec1fe1 100644 --- a/Core/Src/ui.c +++ b/Core/Src/ui.c @@ -36,8 +36,11 @@ void ui_thread_entry(ULONG _) { button_states[i] = state; } } - if ((press_event == 1 || press_event == 2) && button_states[1] && - button_states[2]) { + // FIXME: The right button doesn't work :( + + // if ((press_event == 1 || press_event == 2) && button_states[1] && + // button_states[2]) { + if (press_event == 1 && button_states[1]) { tx_event_flags_set(&gui_update_events, GUI_UPDATE_NEXT_SCREEN, TX_OR); } vehicle_broadcast_buttons(button_states);