Skip to content

Commit ea6e210

Browse files
huming2207h2zero
authored andcommitted
Fix compilation on ESP32-S3
1 parent d47cf59 commit ea6e210

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
@@ -822,7 +822,7 @@ void NimBLEDevice::init(const std::string &deviceName) {
822822
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
823823

824824
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
825-
#ifdef CONFIG_IDF_TARGET_ESP32C3
825+
#if defined (CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
826826
bt_cfg.bluetooth_mode = ESP_BT_MODE_BLE;
827827
#else
828828
bt_cfg.mode = ESP_BT_MODE_BLE;

0 commit comments

Comments
 (0)