From 4cefc556c7a2bfc7bac84151d13d6ad8c682ffbd Mon Sep 17 00:00:00 2001 From: KlausMu Date: Thu, 11 Apr 2024 09:52:47 +0200 Subject: [PATCH] changes needed for lvgl 9 --- Platformio/src/applicationInternal/gui/guiBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Platformio/src/applicationInternal/gui/guiBase.cpp b/Platformio/src/applicationInternal/gui/guiBase.cpp index ef0c1ca..0a0c0fd 100644 --- a/Platformio/src/applicationInternal/gui/guiBase.cpp +++ b/Platformio/src/applicationInternal/gui/guiBase.cpp @@ -37,7 +37,7 @@ void guis_doAfterSliding(int oldTabID, int newTabID, bool newGuiList); // callback when pageIndicator prev or next was clicked void pageIndicator_navigate_event_cb(lv_event_t* e) { - lv_obj_t* target = lv_event_get_target(e); + lv_obj_t* target = (lv_obj_t*)lv_event_get_target(e); int user_data = (intptr_t)(target->user_data); if (user_data == 0) { @@ -336,7 +336,7 @@ void setActiveTab(uint32_t index, lv_anim_enable_t anim_en, bool send_tab_change } if (send_tab_changed_event) { - lv_event_send(tabview, LV_EVENT_VALUE_CHANGED, NULL); + lv_obj_send_event(tabview, LV_EVENT_VALUE_CHANGED, NULL); } }