summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/vfs_lfsx.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/vfs_lfsx.c')
-rw-r--r--extmod/vfs_lfsx.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/extmod/vfs_lfsx.c b/extmod/vfs_lfsx.c
index 72c6696105..3f8d262a48 100644
--- a/extmod/vfs_lfsx.c
+++ b/extmod/vfs_lfsx.c
@@ -502,15 +502,19 @@ STATIC const mp_vfs_proto_t MP_VFS_LFSx(proto) = {
.import_stat = MP_VFS_LFSx(import_stat),
};
+#if LFS_BUILD_VERSION == 1
+#define VFS_LFSx_QSTR MP_QSTR_VfsLfs1
+#else
+#define VFS_LFSx_QSTR MP_QSTR_VfsLfs2
+#endif
+
MP_DEFINE_CONST_OBJ_TYPE(
MP_TYPE_VFS_LFSx,
- #if LFS_BUILD_VERSION == 1
- MP_QSTR_VfsLfs1,
- #else
- MP_QSTR_VfsLfs2,
- #endif
+ VFS_LFSx_QSTR,
MP_TYPE_FLAG_NONE,
MP_VFS_LFSx(make_new),
protocol, &MP_VFS_LFSx(proto),
locals_dict, (mp_obj_dict_t *)&MP_VFS_LFSx(locals_dict)
);
+
+#undef VFS_LFSx_QSTR