mirror of
https://github.com/esphome/esphome.git
synced 2025-09-12 00:02:21 +01:00
add missed remake
This commit is contained in:
@@ -314,6 +314,8 @@ void HOT Scheduler::call() {
|
|||||||
|
|
||||||
// Replace items_ with the filtered list
|
// Replace items_ with the filtered list
|
||||||
this->items_ = std::move(valid_items);
|
this->items_ = std::move(valid_items);
|
||||||
|
// Rebuild the heap structure since items are no longer in heap order
|
||||||
|
std::make_heap(this->items_.begin(), this->items_.end(), SchedulerItem::cmp);
|
||||||
this->to_remove_ = 0;
|
this->to_remove_ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user