summaryrefslogtreecommitdiff
path: root/src/BLEClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/BLEClient.cpp')
-rw-r--r--src/BLEClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BLEClient.cpp b/src/BLEClient.cpp
index f09cf91..141cf0f 100644
--- a/src/BLEClient.cpp
+++ b/src/BLEClient.cpp
@@ -112,7 +112,7 @@ bool BLEClient::connect(BLEAddress address) {
getGattcIf(),
*getPeerAddress().getNative(), // address
BLE_ADDR_TYPE_PUBLIC, // Note: This was added on 2018-04-03 when the latest ESP-IDF was detected to have changed the signature.
- true // direct connection
+ 1 // direct connection
);
if (errRc != ESP_OK) {
ESP_LOGE(LOG_TAG, "esp_ble_gattc_open: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));