diff options
author | Thomas Friebel <yaron.de@gmail.com> | 2020-04-27 10:21:42 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-05-11 22:31:30 +1000 |
commit | 18fb5b443200548c142d5aa83c08cf873f9524d3 (patch) | |
tree | 0a78cfd320cd01213344ad304d47a906b2640aaa /py/nlrthumb.c | |
parent | c9611b280f04f3ed344c26705de760172240d50f (diff) |
extmod/nimble: Make error code mapping default to MP_EIO.
Before this change, any NimBLE error that does not appear in the
ble_hs_err_to_errno_table maps to return code 0, meaning success. If we
miss adding an error code to the table we end up returning success in case
of failure.
Instead, handle the zero case explicitly and default to MP_EIO. This
allows removing the now-redundant MP_EIO entries from the mapping.
Diffstat (limited to 'py/nlrthumb.c')
0 files changed, 0 insertions, 0 deletions