Skip to content

Commit

Permalink
pkg/nimble/netif: improve _send() error return val
Browse files Browse the repository at this point in the history
  • Loading branch information
haukepetersen committed Feb 3, 2021
1 parent b666b78 commit 101bc61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/nimble/netif/nimble_netif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 101bc61

Please sign in to comment.