1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-17 10:42:21 +01:00

better name

This commit is contained in:
J. Nick Koston
2025-09-06 22:56:57 -05:00
parent 57fd7552e3
commit 4a9cfeddcd

View File

@@ -326,8 +326,8 @@ void HOT Scheduler::call(uint32_t now) {
const auto now_64 = this->millis_64_(now); // 'now' from parameter - fresh from Application::loop() const auto now_64 = this->millis_64_(now); // 'now' from parameter - fresh from Application::loop()
this->process_to_add(); this->process_to_add();
// Track if we add any interval items during this call // Track if any items were added to to_add_ during this call (intervals or from callbacks)
bool added_intervals = false; bool added_items = false;
#ifdef ESPHOME_DEBUG_SCHEDULER #ifdef ESPHOME_DEBUG_SCHEDULER
static uint64_t last_print = 0; static uint64_t last_print = 0;
@@ -474,11 +474,11 @@ void HOT Scheduler::call(uint32_t now) {
this->to_add_.push_back(std::move(item)); this->to_add_.push_back(std::move(item));
} }
added_intervals |= this->to_add_.empty() == false; added_items |= this->to_add_.empty() == false;
} }
} }
if (added_intervals) { if (added_items) {
this->process_to_add(); this->process_to_add();
} }
} }