From c32d75ae25fbcb53e45169cd3a5f945bb74ba4c5 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Wed, 29 Mar 2023 09:06:13 +1100 Subject: [PATCH] Fix missed decoder for writing --- source/Core/BSP/Pinecilv2/ble_handlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Core/BSP/Pinecilv2/ble_handlers.cpp b/source/Core/BSP/Pinecilv2/ble_handlers.cpp index 41fc088e74..f59c213479 100644 --- a/source/Core/BSP/Pinecilv2/ble_handlers.cpp +++ b/source/Core/BSP/Pinecilv2/ble_handlers.cpp @@ -232,7 +232,7 @@ int ble_char_write_setting_value_callback(struct bt_conn *conn, const struct bt_ // Use write request / execute write data. BT_WARN((char *)"recv write request / exce write\n"); } - uint16_t uuid_value = ((struct bt_uuid_16 *)attr->uuid)->val; + uint16_t uuid_value = ((struct bt_uuid_128 *)attr->uuid)->val[12]; if (len == 2) { uint16_t new_value = 0; memcpy(&new_value, buf, sizeof(new_value));