1
0
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:
Hauke Petersen 2021-02-03 12:10:52 +01:00
parent b666b78602
commit 101bc6184c

View File

@ -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;