extmod/vfs_lfs: Fix littlefs bindings to build in nan-box mode.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
76faeed098
commit
0c77668d11
@ -442,7 +442,7 @@ STATIC mp_import_stat_t MP_VFS_LFSx(import_stat)(void *self_in, const char *path
|
|||||||
MP_OBJ_VFS_LFSx *self = self_in;
|
MP_OBJ_VFS_LFSx *self = self_in;
|
||||||
struct LFSx_API (info) info;
|
struct LFSx_API (info) info;
|
||||||
mp_obj_str_t path_obj = { { &mp_type_str }, 0, 0, (const byte *)path };
|
mp_obj_str_t path_obj = { { &mp_type_str }, 0, 0, (const byte *)path };
|
||||||
path = MP_VFS_LFSx(make_path)(self, &path_obj);
|
path = MP_VFS_LFSx(make_path)(self, MP_OBJ_FROM_PTR(&path_obj));
|
||||||
int ret = LFSx_API(stat)(&self->lfs, path, &info);
|
int ret = LFSx_API(stat)(&self->lfs, path, &info);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
if (info.type == LFSx_MACRO(_TYPE_REG)) {
|
if (info.type == LFSx_MACRO(_TYPE_REG)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user