From 005e7bd2ddf66884bc172359f9601427893cacb8 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 24 Mar 2021 14:05:23 +0100 Subject: [PATCH] nordic_spp_le_streamer: get context to track throughput --- example/nordic_spp_le_streamer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/nordic_spp_le_streamer.c b/example/nordic_spp_le_streamer.c index a7cd4f485..074dc0ba6 100644 --- a/example/nordic_spp_le_streamer.c +++ b/example/nordic_spp_le_streamer.c @@ -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: