File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -889,7 +889,7 @@ bool NimBLEDevice::init(const std::string& deviceName) {
889889 esp_bt_controller_mem_release (ESP_BT_MODE_CLASSIC_BT);
890890# endif
891891
892- # if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0) | !defined(CONFIG_NIMBLE_CPP_IDF)
892+ # if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0) || !defined(CONFIG_NIMBLE_CPP_IDF)
893893 esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT ();
894894# if defined(CONFIG_IDF_TARGET_ESP32)
895895 bt_cfg.mode = ESP_BT_MODE_BLE;
@@ -916,11 +916,13 @@ bool NimBLEDevice::init(const std::string& deviceName) {
916916 return false ;
917917 }
918918
919+ # if CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE
919920 err = esp_nimble_hci_init ();
920921 if (err != ESP_OK) {
921922 NIMBLE_LOGE (LOG_TAG, " esp_nimble_hci_init() failed; err=%d" , err);
922923 return false ;
923924 }
925+ # endif
924926# endif
925927# endif
926928 nimble_port_init ();
You can’t perform that action at this time.
0 commit comments