Skip to content

Commit

Permalink
cc3200/mods/pybi2c: Raise OSError if readfrom_mem fails to write addr.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Mar 29, 2017
1 parent 22e2f4a commit 6bfb344
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cc3200/mods/pybi2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6bfb344

Please sign in to comment.