Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c3cd46e5
Commit
c3cd46e5
authored
Jan 29, 2017
by
Damien George
Browse files
stmhal: Fix name of automatically created boot.py.
parent
3a354325
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/main.c
View file @
c3cd46e5
...
...
@@ -249,7 +249,7 @@ MP_NOINLINE STATIC void init_flash_fs(uint reset_mode) {
uint32_t
start_tick
=
HAL_GetTick
();
FIL
fp
;
f_open
(
&
vfs_fat
->
fatfs
,
&
fp
,
"/
flash/
boot.py"
,
FA_WRITE
|
FA_CREATE_ALWAYS
);
f_open
(
&
vfs_fat
->
fatfs
,
&
fp
,
"/boot.py"
,
FA_WRITE
|
FA_CREATE_ALWAYS
);
UINT
n
;
f_write
(
&
fp
,
fresh_boot_py
,
sizeof
(
fresh_boot_py
)
-
1
/* don't count null terminator */
,
&
n
);
// TODO check we could write n bytes
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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