mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
core/schedule: fixup out of sync code comment (#9649)
This commit is contained in:
@@ -218,8 +218,7 @@ class Scheduler {
|
|||||||
// Platforms without atomic support or single-threaded platforms
|
// Platforms without atomic support or single-threaded platforms
|
||||||
uint32_t last_millis_{0};
|
uint32_t last_millis_{0};
|
||||||
#endif
|
#endif
|
||||||
// millis_major_ is protected by lock when incrementing, volatile ensures
|
// millis_major_ is protected by lock when incrementing
|
||||||
// reads outside the lock see fresh values (not cached in registers)
|
|
||||||
uint16_t millis_major_{0};
|
uint16_t millis_major_{0};
|
||||||
uint32_t to_remove_{0};
|
uint32_t to_remove_{0};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user