Skip to content

Commit a6f03fd

Browse files
committed
Do not affect ESP-IDF <5.5.0
1 parent 6d16a68 commit a6f03fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NimBLEDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ bool NimBLEDevice::injectConfirmPasskey(const NimBLEConnInfo& peerInfo, bool acc
12901290
* @param [in] deviceName The name to set.
12911291
*/
12921292
bool NimBLEDevice::setDeviceName(const std::string& deviceName) {
1293-
#if CONFIG_BT_NIMBLE_GAP_SERVICE
1293+
#if !defined(ESP_IDF_VERSION) || ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 5, 0) || CONFIG_BT_NIMBLE_GAP_SERVICE
12941294
int rc = ble_svc_gap_device_name_set(deviceName.c_str());
12951295
if (rc != 0) {
12961296
NIMBLE_LOGE(LOG_TAG, "Device name not set - too long");

0 commit comments

Comments
 (0)