1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 21:32:21 +01:00

Fix scheduler

This commit is contained in:
Otto Winter
2019-06-09 13:19:57 +02:00
parent 75630a36f8
commit 8db6f3129c
3 changed files with 17 additions and 23 deletions

View File

@@ -164,7 +164,7 @@ void ESP32BLETracker::start_scan(bool first) {
esp_ble_gap_set_scan_params(&this->scan_params_);
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...");
App.reboot();
});