8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c2243 commit ba5e484Copy full SHA for ba5e484
ports/stm32/main.c
@@ -222,8 +222,8 @@ MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
222
223
if (len != -1) {
224
// Detected a littlefs filesystem so create correct block device for it
225
- mp_obj_t args[] = { MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_NEW_SMALL_INT(len) };
226
- bdev = pyb_flash_type.make_new(&pyb_flash_type, 2, 0, args);
+ mp_obj_t args[] = { MP_OBJ_NEW_QSTR(MP_QSTR_len), MP_OBJ_NEW_SMALL_INT(len) };
+ bdev = pyb_flash_type.make_new(&pyb_flash_type, 0, 1, args);
227
}
228
229
#endif
0 commit comments