1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

Fix scheduler with too many cancelled timers (#1309)

* Fix scheduler with too many cancelled timers

* lint

* use variable name
This commit is contained in:
Guillermo Ruffino
2020-10-15 10:12:31 -03:00
committed by GitHub
parent c9caf44c2e
commit b266fb37a3
2 changed files with 26 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ class Scheduler {
std::vector<std::unique_ptr<SchedulerItem>> to_add_;
uint32_t last_millis_{0};
uint8_t millis_major_{0};
uint32_t to_remove_{0};
};
} // namespace esphome