summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/import.c
diff options
context:
space:
mode:
authorRachel Dowdall <rjdowdall@gmail.com>2014-03-22 12:17:36 +0000
committerRachel Dowdall <rjdowdall@gmail.com>2014-03-22 12:17:36 +0000
commit17f45d41fefdb75fb76fca00ce4d7d5e158b6ea5 (patch)
tree36077e73d30aa91f94ed74b707facc86b7ed7937 /stmhal/import.c
parent300c8bd4c2c0c6d626a6aaeb873c22a8f8b9fc3f (diff)
parentda8d21e0dd236ae5e31bfac4ff8d5b73ddd49282 (diff)
downloadmicropython-17f45d41fefdb75fb76fca00ce4d7d5e158b6ea5.tar.gz
micropython-17f45d41fefdb75fb76fca00ce4d7d5e158b6ea5.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'stmhal/import.c')
-rw-r--r--stmhal/import.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/stmhal/import.c b/stmhal/import.c
index f2fd3b3dee..c977dcf2ec 100644
--- a/stmhal/import.c
+++ b/stmhal/import.c
@@ -1,16 +1,18 @@
+#include <stdio.h>
#include <stdint.h>
#include "misc.h"
#include "mpconfig.h"
#include "qstr.h"
#include "lexer.h"
-#if 0
#include "ff.h"
-#endif
mp_import_stat_t mp_import_stat(const char *path) {
-#if 0
FILINFO fno;
+#if _USE_LFN
+ fno.lfname = NULL;
+ fno.lfsize = 0;
+#endif
FRESULT res = f_stat(path, &fno);
if (res == FR_OK) {
if ((fno.fattrib & AM_DIR) != 0) {
@@ -19,6 +21,5 @@ mp_import_stat_t mp_import_stat(const char *path) {
return MP_IMPORT_STAT_FILE;
}
}
-#endif
return MP_IMPORT_STAT_NO_EXIST;
}