From b882d8c7218119a4e058fbf092aee958f8bd3655 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Apr 2026 23:31:48 -1000 Subject: [PATCH] [esp8266] Fix stale s_last_us reference in comment Updated to state.last_us to match the struct refactor. --- esphome/components/esp8266/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/esp8266/core.cpp b/esphome/components/esp8266/core.cpp index f7106e077e..91854e3877 100644 --- a/esphome/components/esp8266/core.cpp +++ b/esphome/components/esp8266/core.cpp @@ -27,7 +27,7 @@ void HOT yield() { ::yield(); } // Unsigned subtraction (now - last) handles one wrap correctly. ESPHome calls // millis() thousands of times per second (1+N per loop iteration at 60+ Hz), so // missing a full 71-minute wrap period is not a realistic concern. At boot, -// s_last_us starts at 0 and system_get_time() counts from 0, so the first call's +// state.last_us starts at 0 and system_get_time() counts from 0, so the first call's // delta equals the real elapsed time — no special initialization needed. // // This function is also installed as __wrap_millis (via -Wl,--wrap=millis) so