mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 17:47:51 +01:00
Update esp32_ble_tracker.cpp
This commit is contained in:
parent
d69926ee56
commit
642bc91a76
@ -164,7 +164,7 @@ void ESP32BLETracker::start_scan(bool first) {
|
|||||||
esp_ble_gap_set_scan_params(&this->scan_params_);
|
esp_ble_gap_set_scan_params(&this->scan_params_);
|
||||||
esp_ble_gap_start_scanning(this->scan_interval_);
|
esp_ble_gap_start_scanning(this->scan_interval_);
|
||||||
|
|
||||||
this->set_timeout("scan", this->scan_interval_ * 2000, [] () {
|
this->set_timeout("scan", this->scan_interval_ * 2000, []() {
|
||||||
ESP_LOGW(TAG, "ESP-IDF BLE scan never terminated, rebooting to restore BLE stack...");
|
ESP_LOGW(TAG, "ESP-IDF BLE scan never terminated, rebooting to restore BLE stack...");
|
||||||
App.reboot();
|
App.reboot();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user