8000 extmod/vfs_lfs: Fix bug when passing no args to constructor and mkfs. · rlangoy/micropython@6b3404f · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b3404f

Browse files
committed
extmod/vfs_lfs: Fix bug when passing no args to constructor and mkfs.
1 parent d8057c3 commit 6b3404f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/vfs_lfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
enum { LFS_MAKE_ARG_bdev, LFS_MAKE_ARG_readsize, LFS_MAKE_ARG_progsize, LFS_MAKE_ARG_lookahead };
3434

3535
static const mp_arg_t lfs_make_allowed_args[] = {
36-
{ MP_QSTR_, MP_ARG_OBJ },
36+
{ MP_QSTR_, MP_ARG_REQUIRED | MP_ARG_OBJ },
3737
{ MP_QSTR_readsize, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 32} },
3838
{ MP_QSTR_progsize, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 32} },
3939
{ MP_QSTR_lookahead, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 32} },

0 commit comments

Comments
 (0)
0