Update variable in scheduler (#838)

Fixes https://github.com/esphome/issues/issues/826
This commit is contained in:
Otto Winter 2019-11-06 22:35:22 +01:00 committed by GitHub
parent a919b015b4
commit b5af3aa048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,6 +211,7 @@ uint32_t Scheduler::millis_() {
ESP_LOGD(TAG, "Incrementing scheduler major"); ESP_LOGD(TAG, "Incrementing scheduler major");
this->millis_major_++; this->millis_major_++;
} }
this->last_millis_ = now;
return now; return now;
} }