mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/nimble/netif: improve _send() error return val
This commit is contained in:
parent
b666b78602
commit
101bc6184c
@ -142,7 +142,7 @@ static int _send_pkt(nimble_netif_conn_t *conn, gnrc_pktsnip_t *pkt)
|
||||
|
||||
if ((res != 0) && (res != BLE_HS_ESTALLED)) {
|
||||
os_mbuf_free_chain(sdu);
|
||||
return -ENOBUFS;
|
||||
return -ECANCELED;
|
||||
}
|
||||
|
||||
return num_bytes;
|
||||
|
Loading…
Reference in New Issue
Block a user