Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
6bfb344a
Commit
6bfb344a
authored
Mar 29, 2017
by
Damien George
Browse files
cc3200/mods/pybi2c: Raise OSError if readfrom_mem fails to write addr.
parent
22e2f4a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
cc3200/mods/pybi2c.c
View file @
6bfb344a
...
...
@@ -278,6 +278,8 @@ STATIC void pyb_i2c_readmem_into (mp_arg_val_t *args, vstr_t *vstr) {
if
(
!
pyb_i2c_read
(
i2c_addr
,
(
byte
*
)
vstr
->
buf
,
vstr
->
len
))
{
mp_raise_OSError
(
MP_EIO
);
}
}
else
{
mp_raise_OSError
(
MP_EIO
);
}
}
...
...
Write
Preview
Supports
Markdown
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