Skip to content

Commit

Permalink
Update BLEDevice.cpp (#3267)
Browse files Browse the repository at this point in the history
Pretty sure this was a typo as the deinit doesn't actually allow for reinit if that is an ifndef.  Changed in my local copy and can now deinit and reinit just fine.  Also, not sure why we are checking for the architecture here.  Just curious.
  • Loading branch information
billprozac authored and me-no-dev committed Sep 26, 2019
1 parent 589bb70 commit 9bbd720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/BLE/src/BLEDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ void BLEDevice::removePeerDevice(uint16_t conn_id, bool _client) {
esp_bluedroid_deinit();
esp_bt_controller_disable();
esp_bt_controller_deinit();
#ifndef ARDUINO_ARCH_ESP32
#ifdef ARDUINO_ARCH_ESP32
if (release_memory) {
esp_bt_controller_mem_release(ESP_BT_MODE_BTDM); // <-- require tests because we released classic BT memory and this can cause crash (most likely not, esp-idf takes care of it)
} else {
Expand Down

0 comments on commit 9bbd720

Please sign in to comment.