mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
[esp8266] Add USE_FAST_MILLIS_ACCUMULATOR define for benchmark guard
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user