aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/buttonmatrix/lv_buttonmatrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/buttonmatrix/lv_buttonmatrix.c')
-rw-r--r--src/widgets/buttonmatrix/lv_buttonmatrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/buttonmatrix/lv_buttonmatrix.c b/src/widgets/buttonmatrix/lv_buttonmatrix.c
index 00e99b23b..4f6a27b3e 100644
--- a/src/widgets/buttonmatrix/lv_buttonmatrix.c
+++ b/src/widgets/buttonmatrix/lv_buttonmatrix.c
@@ -421,7 +421,7 @@ static void lv_buttonmatrix_event(const lv_obj_class_t * class_p, lv_event_t * e
lv_indev_t * indev = lv_event_get_indev(e);
invalidate_button_area(obj, btnm->btn_id_sel);
- lv_indev_type_t indev_type = lv_indev_get_type(lv_indev_get_act());
+ lv_indev_type_t indev_type = lv_indev_get_type(lv_indev_active());
if(indev_type == LV_INDEV_TYPE_POINTER || indev_type == LV_INDEV_TYPE_BUTTON) {
uint32_t btn_pr;
/*Search the pressed area*/