Explorar o código

fix: lvgl7,不开启TP时会报touchpad_is_pressed函数未声明

Wendal Chen hai 1 ano
pai
achega
6c28f92f4f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/lvgl/binding/luat_lib_lvgl_indev_ext.c

+ 1 - 1
components/lvgl/binding/luat_lib_lvgl_indev_ext.c

@@ -39,7 +39,6 @@ static void touchpad_get_xy(lv_coord_t * x, lv_coord_t * y)
     (*x) = lvgl_tp_data[0].x_coordinate;
     (*y) = lvgl_tp_data[0].y_coordinate;
 }
-#endif
 
 static bool touch_input_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data)
 {
@@ -62,6 +61,7 @@ static bool touch_input_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data)
     /*Return `false` because we are not buffering and no more data to read*/
     return false;
 }
+#endif
 
 /*
 注册输入设备驱动