8000 Merge pull request #595 from robertklep/remote-ble-descriptor-fix · AlexanderKa1/esp32-snippets@c224f3c · GitHub
[go: up one dir, main page]

Skip to content

Commit c224f3c

Browse files
authored
Merge pull request nkolban#595 from robertklep/remote-ble-descriptor-fix
Handle `response` argument for BLERemoteDescriptor#writeValue()
2 parents cf45586 + 74b056f commit c224f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp_utils/BLERemoteDescriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void BLERemoteDescriptor::writeValue(
148148
getHandle(),
149149
length, // Data length
150150
data, // Data
151-
ESP_GATT_WRITE_TYPE_NO_RSP,
151+
response ? ESP_GATT_WRITE_TYPE_RSP : ESP_GATT_WRITE_TYPE_NO_RSP,
152152
ESP_GATT_AUTH_REQ_NONE
153153
);
154154
if (errRc != ESP_OK) {

0 commit comments

Comments
 (0)
0