From c65cc08eb374b9ceed29ad09bafffeb9e75d2736 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 28 Jan 2024 19:23:35 +0100 Subject: [PATCH] Don't break macros --- CYD-Klipper/src/ui/panels/macros_panel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/CYD-Klipper/src/ui/panels/macros_panel.cpp b/CYD-Klipper/src/ui/panels/macros_panel.cpp index 920a47a..649de2f 100644 --- a/CYD-Klipper/src/ui/panels/macros_panel.cpp +++ b/CYD-Klipper/src/ui/panels/macros_panel.cpp @@ -55,6 +55,7 @@ void macros_panel_init(lv_obj_t* panel) { lv_obj_set_flex_grow(label, 1); lv_obj_t * btn = lv_btn_create(panel); + lv_obj_add_event_cb(btn, btn_press, LV_EVENT_CLICKED, (void*)macro); lv_obj_set_height(btn, CYD_SCREEN_MIN_BUTTON_HEIGHT_PX); label = lv_label_create(btn);