summaryrefslogtreecommitdiff
path: root/py/nlrthumb.c
diff options
context:
space:
mode:
authorThomas Friebel <yaron.de@gmail.com>2020-04-27 10:21:42 +0200
committerDamien George <damien.p.george@gmail.com>2020-05-11 22:31:30 +1000
commit18fb5b443200548c142d5aa83c08cf873f9524d3 (patch)
tree0a78cfd320cd01213344ad304d47a906b2640aaa /py/nlrthumb.c
parentc9611b280f04f3ed344c26705de760172240d50f (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