From 142d42946455f2ffedafdba8ac49d296c3c2a346 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 3 Apr 2015 22:40:20 +0200 Subject: [PATCH] correct ATT_MTU_EXCHANGE_COMPLETE event generation --- ble/att_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ble/att_server.c b/ble/att_server.c index 70d047ff5..d730bf78c 100644 --- a/ble/att_server.c +++ b/ble/att_server.c @@ -108,7 +108,7 @@ static void att_emit_mtu_event(uint16_t handle, uint16_t mtu){ if (!att_client_packet_handler) return; - uint8_t event[5]; + uint8_t event[6]; int pos = 0; event[pos++] = ATT_MTU_EXCHANGE_COMPLETE; event[pos++] = sizeof(event) - 2;