fix(examples): add casts (#7831)

This commit is contained in:
Felix Biego
2025-02-25 01:23:54 +03:00
committed by GitHub
parent 27b113e270
commit db1daf55d8
47 changed files with 110 additions and 160 deletions
@@ -4,7 +4,7 @@
static void event_handler(lv_event_t * e)
{
lv_event_code_t code = lv_event_get_code(e);
lv_obj_t * obj = lv_event_get_target(e);
lv_obj_t * obj = lv_event_get_target_obj(e);
if(code == LV_EVENT_VALUE_CHANGED) {
char buf[32];
lv_dropdown_get_selected_str(obj, buf, sizeof(buf));
@@ -3,7 +3,7 @@
static void event_cb(lv_event_t * e)
{
lv_obj_t * dropdown = lv_event_get_target(e);
lv_obj_t * dropdown = lv_event_get_target_obj(e);
char buf[64];
lv_dropdown_get_selected_str(dropdown, buf, sizeof(buf));
LV_LOG_USER("'%s' is selected", buf);