mirror of
https://github.com/esphome/esphome.git
synced 2025-08-07 10:57:46 +00:00
preen
This commit is contained in:
parent
37ffd64b48
commit
71d6ba242e
@ -273,10 +273,12 @@ void HOT Scheduler::call() {
|
|||||||
ESP_LOGD(TAG, "Items: count=%zu, now=%" PRIu64 " (%u, %" PRIu32 ")", this->items_.size(), now, this->millis_major_,
|
ESP_LOGD(TAG, "Items: count=%zu, now=%" PRIu64 " (%u, %" PRIu32 ")", this->items_.size(), now, this->millis_major_,
|
||||||
this->last_millis_);
|
this->last_millis_);
|
||||||
while (!this->empty_()) {
|
while (!this->empty_()) {
|
||||||
this->lock_.lock();
|
{
|
||||||
auto item = std::move(this->items_[0]);
|
LockGuard guard{this->lock_};
|
||||||
this->pop_raw_();
|
auto item = std::move(this->items_[0]);
|
||||||
this->lock_.unlock();
|
this->pop_raw_();
|
||||||
|
old_items.push_back(std::move(item));
|
||||||
|
}
|
||||||
|
|
||||||
const char *name = item->get_name();
|
const char *name = item->get_name();
|
||||||
ESP_LOGD(TAG, " %s '%s/%s' interval=%" PRIu32 " next_execution in %" PRIu64 "ms at %" PRIu64,
|
ESP_LOGD(TAG, " %s '%s/%s' interval=%" PRIu32 " next_execution in %" PRIu64 "ms at %" PRIu64,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user