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
968b7dd1
Commit
968b7dd1
authored
May 21, 2015
by
Dave Hylands
Committed by
Damien George
May 24, 2015
Browse files
stmhal: Detect disk full condition
parent
3cb804de
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/file.c
View file @
968b7dd1
...
...
@@ -88,6 +88,11 @@ STATIC mp_uint_t file_obj_write(mp_obj_t self_in, const void *buf, mp_uint_t siz
*
errcode
=
fresult_to_errno_table
[
res
];
return
MP_STREAM_ERROR
;
}
if
(
sz_out
!=
size
)
{
// The FatFS documentation says that this means disk full.
*
errcode
=
ENOSPC
;
return
MP_STREAM_ERROR
;
}
return
sz_out
;
}
...
...
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