1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00: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

@@ -33,11 +33,10 @@ class Scheduler {
std::function<void()> f;
bool remove;
bool operator<(const SchedulerItem &other) const;
static bool cmp(SchedulerItem *a, SchedulerItem *b);
};
void cleanup_();
bool peek_();
void pop_raw_();
void push_(SchedulerItem *item);
bool cancel_item_(Component *component, const std::string &name, SchedulerItem::Type type);