[esp8266] Fix stale s_last_us reference in comment

Updated to state.last_us to match the struct refactor.
This commit is contained in:
J. Nick Koston
2026-04-11 23:31:48 -10:00
parent da9c44d28d
commit b882d8c721
+1 -1
View File
@@ -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