From 6b7b88195ced73dc04410b25e7b57ff72b40dbfc Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 18 Nov 2015 14:20:01 +0100 Subject: [PATCH] clean hfp_handle_rfcomm_event --- src/hfp_ag.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/hfp_ag.c b/src/hfp_ag.c index 6e30fd7bf..64d008ec5 100644 --- a/src/hfp_ag.c +++ b/src/hfp_ag.c @@ -782,15 +782,9 @@ static void hfp_run_for_context(hfp_connection_t *context){ static void hfp_handle_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ hfp_connection_t * context = get_hfp_connection_context_for_rfcomm_cid(channel); if (!context) return; - - packet[size] = 0; int pos; for (pos = 0; pos < size ; pos++){ hfp_parse(context, packet[pos]); - - // trigger next action after CMD received - if (context->command == HFP_CMD_NONE) continue; - //hfp_run_for_context(context); } }