Skip to content

Commit 761bac7

Browse files
committed
Fix compile error for esp32S3.
1 parent 4b05541 commit 761bac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NimBLEDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ NimBLEAddress NimBLEDevice::getWhiteListAddress(size_t index) {
757757
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
758758

759759
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
760-
#ifdef CONFIG_IDF_TARGET_ESP32C3
760+
#if defined (CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
761761
bt_cfg.bluetooth_mode = ESP_BT_MODE_BLE;
762762
#else
763763
bt_cfg.mode = ESP_BT_MODE_BLE;

0 commit comments

Comments
 (0)