[esp8266] Add USE_FAST_MILLIS_ACCUMULATOR define for benchmark guard

This commit is contained in:
J. Nick Koston
2026-04-11 22:37:45 -10:00
parent 16f7effcf3
commit dff6199fc8
+1
View File
@@ -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])