فهرست منبع

fix: sensor,如果启用了drv_gpio,要引入对应的头文件

Wendal Chen 8 ماه پیش
والد
کامیت
d94c7c0015
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      luat/modules/luat_lib_sensor.c

+ 5 - 0
luat/modules/luat_lib_sensor.c

@@ -15,6 +15,11 @@
 #include "luat_gpio.h"
 #include "luat_zbuff.h"
 #ifdef LUAT_USE_SENSOR
+
+#ifdef LUAT_USE_DRV_GPIO
+#include "luat/drv_gpio.h"
+#endif
+
 #define LUAT_LOG_TAG "sensor"
 #include "luat_log.h"