mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(btnmatrix): fix array out of bounds addressing with groups and no buttons
This commit is contained in:
parent
5d84ac7a9a
commit
03a9828a56
@ -521,6 +521,8 @@ static void lv_btnmatrix_event(const lv_obj_class_t * class_p, lv_event_t * e)
|
||||
btnm->btn_id_sel = LV_BTNMATRIX_BTN_NONE;
|
||||
}
|
||||
else if(code == LV_EVENT_FOCUSED) {
|
||||
if(btnm->btn_cnt == 0) return;
|
||||
|
||||
lv_indev_t * indev = lv_event_get_param(e);
|
||||
lv_indev_type_t indev_type = lv_indev_get_type(indev);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user