mirror of
https://github.com/esphome/esphome.git
synced 2026-10-04 02:05:59 +00:00
[uptime] Use scheduler millis_64() for rollover-safe uptime tracking (#14170)
This commit is contained in:
@@ -675,6 +675,8 @@ bool HOT Scheduler::cancel_item_locked_(Component *component, NameType name_type
|
||||
return total_cancelled > 0;
|
||||
}
|
||||
|
||||
uint64_t Scheduler::millis_64() { return this->millis_64_(millis()); }
|
||||
|
||||
uint64_t Scheduler::millis_64_(uint32_t now) {
|
||||
// THREAD SAFETY NOTE:
|
||||
// This function has three implementations, based on the precompiler flags
|
||||
|
||||
Reference in New Issue
Block a user