Skip to content

Commit

Permalink
changes needed for lvgl 9
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausMu committed Apr 11, 2024
1 parent 4e98d74 commit 4cefc55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Platformio/src/applicationInternal/gui/guiBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 4cefc55

Please sign in to comment.