Diff between 706032ee28ab2f150051c49e790b94a8633b5bd6 and f0fee838d4c76db04a2a3a6bf9f549a3f2d2fe5f

Changed Files

File Additions Deletions Status
src/shared/gatt-client.c +1 -1 modified
src/shared/gatt-client.h +1 -1 modified

Full Patch

diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index 729bd87..056f812 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -2703,7 +2703,7 @@ static struct request *get_reliable_request(struct bt_gatt_client *client,
 
 unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
 				unsigned int id, uint16_t value_handle,
-				uint16_t offset, uint8_t *value,
+				uint16_t offset, const uint8_t *value,
 				uint16_t length,
 				bt_gatt_client_write_long_callback_t callback,
 				void *user_data,
diff --git a/src/shared/gatt-client.h b/src/shared/gatt-client.h
index 8e5e0f5..b816cc4 100644
--- a/src/shared/gatt-client.h
+++ b/src/shared/gatt-client.h
@@ -111,7 +111,7 @@ unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
 unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
 				unsigned int id,
 				uint16_t value_handle, uint16_t offset,
-				uint8_t *value, uint16_t length,
+				const uint8_t *value, uint16_t length,
 				bt_gatt_client_write_long_callback_t callback,
 				void *user_data,
 				bt_gatt_client_destroy_func_t destroy);