From ff666f0b822694354ea0edcc93d10259c1478356 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Fri, 26 Mar 2021 15:41:49 +0100 Subject: [PATCH] device_information_client: fix emit_string_event --- src/ble/gatt-service/device_information_service_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ble/gatt-service/device_information_service_client.c b/src/ble/gatt-service/device_information_service_client.c index a37123909..f6417c905 100644 --- a/src/ble/gatt-service/device_information_service_client.c +++ b/src/ble/gatt-service/device_information_service_client.c @@ -194,7 +194,7 @@ static void device_information_service_emit_string_value(device_information_serv pos += bytes_to_copy; event[pos++] = 0; - event[2] = pos - 2; + event[1] = pos - 2; (*client->client_handler)(HCI_EVENT_PACKET, 0, event, pos); }