diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2021-09-21 13:36:06 +1000 |
|---|---|---|
| committer | Jim Mussared <jim.mussared@gmail.com> | 2021-10-26 16:43:18 +1100 |
| commit | 9519484c564de8408d001ebbf45de27ef78bb60a (patch) | |
| tree | 0a775e6895e8e9a2cdf9cf68cde2dfff49eda4d7 | |
| parent | 948e3289bf3e86974f1fc399aadb130e9de26401 (diff) | |
extmod/nimble: Remove workaround for OS_ENOMEM.
This was fixed in NimBLE 1.4.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
| -rw-r--r-- | extmod/nimble/modbluetooth_nimble.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/extmod/nimble/modbluetooth_nimble.c b/extmod/nimble/modbluetooth_nimble.c index 125e282d0..919841c24 100644 --- a/extmod/nimble/modbluetooth_nimble.c +++ b/extmod/nimble/modbluetooth_nimble.c @@ -1747,12 +1747,6 @@ int mp_bluetooth_l2cap_send(uint16_t conn_handle, uint16_t cid, const uint8_t *b *stalled = true; } - // Sometimes we see what looks like BLE_HS_EAGAIN (but it's actually - // OS_ENOMEM in disguise). Fixed in NimBLE v1.4. - if (err == OS_ENOMEM) { - err = BLE_HS_ENOMEM; - } - // Other error codes such as BLE_HS_EBUSY (we're stalled) or BLE_HS_EBADDATA (bigger than MTU). return ble_hs_err_to_errno(err); } |
