aboutsummaryrefslogtreecommitdiff
path: root/extmod/vfs_fat.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-05-10 12:30:34 +1000
committerDamien George <damien.p.george@gmail.com>2017-05-10 12:30:34 +1000
commitd70f688f25a76e1e6a251a4ffc5144539c1a4e64 (patch)
tree0fe48574b216d1b9012f8bbf46c9c7ce446aa6e6 /extmod/vfs_fat.c
parentf1609bc843f1c30117cf9dfae8fb22ee36512446 (diff)
extmod/vfs: Use MP_S_IFDIR, MP_S_IFREG consts instead of magic numbers.
Diffstat (limited to 'extmod/vfs_fat.c')
-rw-r--r--extmod/vfs_fat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/vfs_fat.c b/extmod/vfs_fat.c
index 41c32c6b6..0ec3fe6d2 100644
--- a/extmod/vfs_fat.c
+++ b/extmod/vfs_fat.c
@@ -225,9 +225,9 @@ STATIC mp_obj_t fat_vfs_stat(mp_obj_t vfs_in, mp_obj_t path_in) {
mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(10, NULL));
mp_int_t mode = 0;
if (fno.fattrib & AM_DIR) {
- mode |= 0x4000; // stat.S_IFDIR
+ mode |= MP_S_IFDIR;
} else {
- mode |= 0x8000; // stat.S_IFREG
+ mode |= MP_S_IFREG;
}
mp_int_t seconds = timeutils_seconds_since_2000(
1980 + ((fno.fdate >> 9) & 0x7f),