From dff6199fc8cb4bf46848bf519c8c7c778bc906e0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Apr 2026 22:37:45 -1000 Subject: [PATCH] [esp8266] Add USE_FAST_MILLIS_ACCUMULATOR define for benchmark guard --- esphome/components/esp8266/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/esp8266/__init__.py b/esphome/components/esp8266/__init__.py index 34540bd48d..f8c37e3e94 100644 --- a/esphome/components/esp8266/__init__.py +++ b/esphome/components/esp8266/__init__.py @@ -318,6 +318,7 @@ async def to_code(config): # handlers) use our fast accumulator instead of the expensive 4x 64-bit multiply # implementation in the Arduino ESP8266 core. cg.add_build_flag("-Wl,--wrap=millis") + cg.add_define("USE_FAST_MILLIS_ACCUMULATOR") cg.add_platformio_option("board_build.flash_mode", config[CONF_BOARD_FLASH_MODE])