Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
ba5e4841
Commit
ba5e4841
authored
Nov 27, 2019
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm32/main: Fix auto creation of pyb.Flash on boot with kw-only args.
parent
11c22430
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ports/stm32/main.c
ports/stm32/main.c
+2
-2
No files found.
ports/stm32/main.c
View file @
ba5e4841
...
...
@@ -222,8 +222,8 @@ MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
if
(
len
!=
-
1
)
{
// Detected a littlefs filesystem so create correct block device for it
mp_obj_t
args
[]
=
{
MP_OBJ_NEW_
SMALL_INT
(
0
),
MP_OBJ_NEW_SMALL_INT
(
len
)
};
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
);
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment