From 2c50df938b368d49ba21e6c8feb5162d9220ef7e Mon Sep 17 00:00:00 2001 From: Bjoern Hartmann Date: Mon, 8 Mar 2021 16:24:37 +0100 Subject: [PATCH] hfp: fix extend event size for sent at messages --- src/classic/hfp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/classic/hfp.c b/src/classic/hfp.c index 01e0e7506..035b8a88e 100644 --- a/src/classic/hfp.c +++ b/src/classic/hfp.c @@ -377,7 +377,11 @@ void hfp_emit_sco_event(hfp_connection_t * hfp_connection, uint8_t status, hci_c } void hfp_emit_string_event(hfp_connection_t * hfp_connection, uint8_t event_subtype, const char * value){ +#ifdef ENABLE_HFP_AT_MESSAGES + uint8_t event[256]; +#else uint8_t event[40]; +#endif event[0] = HCI_EVENT_HFP_META; event[1] = sizeof(event) - 2; event[2] = event_subtype;