nordic_spp_le_streamer: get context to track throughput

This commit is contained in:
Matthias Ringwald 2021-03-24 14:05:23 +01:00
parent 0d4e135319
commit 005e7bd2dd

View File

@ -332,6 +332,8 @@ static void nordic_spp_packet_handler(uint8_t packet_type, uint16_t channel, uin
case RFCOMM_DATA_PACKET:
printf("RECV: ");
printf_hexdump(packet, size);
context = connection_for_conn_handle((hci_con_handle_t) channel);
if (!context) break;
test_track_sent(context, size);
break;
default: