btshell: Add simple handler for new L2CAP CoC TX UNSTALLED event

This commit is contained in:
Łukasz Rymanowski
2019-04-12 22:35:40 +02:00
parent 4d70828f18
commit 9f6cbefc59
+4
View File
@@ -2023,6 +2023,10 @@ btshell_l2cap_event(struct ble_l2cap_event *event, void *arg)
case BLE_L2CAP_EVENT_COC_DATA_RECEIVED:
btshell_l2cap_coc_recv(event->receive.chan, event->receive.sdu_rx);
return 0;
case BLE_L2CAP_EVENT_COC_TX_UNSTALLED:
console_printf("L2CAP CoC channel %p unstalled, last sdu sent with err=0x%02x\n",
event->tx_unstalled.chan, event->tx_unstalled.status);
return 0;
default:
return 0;
}