fix(examples): fix typo in lv_port_indev_template.c (#6555)

This commit is contained in:
zylalx1
2024-07-25 04:37:46 +08:00
committed by GitHub
parent e72fa89822
commit efbb983c16
+1 -1
View File
@@ -136,7 +136,7 @@ void lv_port_indev_init(void)
/*Register a encoder input device*/
indev_encoder = lv_indev_create();
lv_indev_set_type(indev_encoder, LV_INDEV_TYPE_ENCODER);
lv_indev_set_read_cb(indev_touchpad, encoder_read);
lv_indev_set_read_cb(indev_encoder, encoder_read);
/*Later you should create group(s) with `lv_group_t * group = lv_group_create()`,
*add objects to the group with `lv_group_add_obj(group, obj)`