correct ATT_MTU_EXCHANGE_COMPLETE event generation

This commit is contained in:
Matthias Ringwald 2015-04-03 22:40:20 +02:00
parent c3e2973e56
commit 142d429464

View File

@ -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;