diff --git a/esphome/core/scheduler.h b/esphome/core/scheduler.h index 613053dec6e..d6f9ee2a44e 100644 --- a/esphome/core/scheduler.h +++ b/esphome/core/scheduler.h @@ -620,6 +620,7 @@ class Scheduler { // Counter for items marked for removal. Incremented cross-thread in cancel_item_locked_(). // On ESPHOME_THREAD_MULTI_ATOMICS this is read without a lock in the cleanup_() fast path; // on ESPHOME_THREAD_MULTI_NO_ATOMICS the fast path is disabled so cleanup_() always takes the lock. + // on ESPHOME_THREAD_MULTI_NO_ATOMICS the fast path is disabled so cleanup_() always takes the lock. #ifdef ESPHOME_THREAD_MULTI_ATOMICS std::atomic to_remove_{0}; #else