fix(gridnav): fix warning when logging is disabled (#5395)

This commit is contained in:
Gabor Kiss-Vamosi
2024-01-19 10:00:10 +01:00
committed by GitHub
parent 481d867cc3
commit 7c1cb04dee

View File

@@ -5,6 +5,7 @@ static void event_handler(lv_event_t * e)
{
lv_obj_t * obj = lv_event_get_target(e);
lv_obj_t * list = lv_obj_get_parent(obj);
LV_UNUSED(list); /*If logging is disabled*/
LV_LOG_USER("Clicked: %s", lv_list_get_button_text(list, obj));
}