From b5af3aa04880c33a7a572937052f8b3bb87b48f3 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 6 Nov 2019 22:35:22 +0100 Subject: [PATCH] Update variable in scheduler (#838) Fixes https://github.com/esphome/issues/issues/826 --- esphome/core/scheduler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/core/scheduler.cpp b/esphome/core/scheduler.cpp index cc4331b38e..e61b2b13c6 100644 --- a/esphome/core/scheduler.cpp +++ b/esphome/core/scheduler.cpp @@ -211,6 +211,7 @@ uint32_t Scheduler::millis_() { ESP_LOGD(TAG, "Incrementing scheduler major"); this->millis_major_++; } + this->last_millis_ = now; return now; }