feat(dropdown): lv_dropdown_set/get_selected_highlight + minor fixes
This commit is contained in:
@@ -4,9 +4,11 @@
|
||||
static void event_handler(lv_obj_t * obj, lv_event_t event)
|
||||
{
|
||||
if(event == LV_EVENT_VALUE_CHANGED) {
|
||||
#if LV_USE_LOG /*To avoid warnings if LV_LOG_USER is empty*/
|
||||
char buf[32];
|
||||
lv_dropdown_get_selected_str(obj, buf, sizeof(buf));
|
||||
LV_LOG_USER("Option: %s\n", buf);
|
||||
LV_LOG_USER("Option: %s", buf);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user