فهرست منبع

fix: air640w启用vfs后编译不过,临时解决一下先

启用vfs会死机, 原因是没有加vfs的初始化代码
Wendal Chen 4 سال پیش
والد
کامیت
375a6c513b
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      luat/rtt/luat_fs_rtt.c

+ 4 - 0
luat/rtt/luat_fs_rtt.c

@@ -8,6 +8,9 @@
 #include "rtthread.h"
 #include <dfs_fs.h>
 
+#ifdef LUAT_USE_FS_VFS
+
+#else
 
 int luat_fs_info(const char* path, luat_fs_info_t *conf) {
     struct statfs buff;
@@ -78,3 +81,4 @@ int luat_fs_mount(luat_fs_conf_t *conf) {
     return -1;
 }
 
+#endif