mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
Update esphome/core/scheduler.h
This commit is contained in:
@@ -185,7 +185,6 @@ class Scheduler {
|
|||||||
|
|
||||||
static bool cmp(const std::unique_ptr<SchedulerItem> &a, const std::unique_ptr<SchedulerItem> &b);
|
static bool cmp(const std::unique_ptr<SchedulerItem> &a, const std::unique_ptr<SchedulerItem> &b);
|
||||||
|
|
||||||
// Helper methods to work with split execution time (constexpr for optimization)
|
|
||||||
constexpr uint64_t get_next_execution() const {
|
constexpr uint64_t get_next_execution() const {
|
||||||
return (static_cast<uint64_t>(next_execution_high_) << 32) | next_execution_low_;
|
return (static_cast<uint64_t>(next_execution_high_) << 32) | next_execution_low_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user