aboutsummaryrefslogtreecommitdiff
path: root/stmhal/import.c
diff options
context:
space:
mode:
authorDamien George2017-01-27 17:17:54 +1100
committerDamien George2017-01-27 17:21:45 +1100
commit6c23c7587f1c02f58e9246ec59fe4f6544728b50 (patch)
tree14ab47dccc6e572fbe53f7b460d01d892c4daf53 /stmhal/import.c
parentfb3ae1784e1905709f82aadb7f1c8994682f9759 (diff)
extmod/vfs: Add ability for VFS sub-system to import using VfsFat.
Diffstat (limited to 'stmhal/import.c')
-rw-r--r--stmhal/import.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stmhal/import.c b/stmhal/import.c
index 1edbe2caa..2bc282e7b 100644
--- a/stmhal/import.c
+++ b/stmhal/import.c
@@ -28,9 +28,8 @@
#include "py/lexer.h"
#include "lib/fatfs/ff.h"
-
-mp_import_stat_t fat_vfs_import_stat(const char *path);
+#include "extmod/vfs_fat.h"
mp_import_stat_t mp_import_stat(const char *path) {
- return fat_vfs_import_stat(path);
+ return fat_vfs_import_stat(NULL, path);
}