1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-15 09:42:19 +01:00

[esp-idf fix] increase FreeRTOS ticker loop from 100Hz to 1kHz (#2527)

Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
Carlos Garcia Saura
2021-10-15 22:06:49 +02:00
committed by GitHub
parent 384f8d97d8
commit 7cca673902
2 changed files with 3 additions and 0 deletions

View File

@@ -302,6 +302,8 @@ async def to_code(config):
)
add_idf_sdkconfig_option("CONFIG_COMPILER_OPTIMIZATION_DEFAULT", False)
add_idf_sdkconfig_option("CONFIG_COMPILER_OPTIMIZATION_SIZE", True)
# Increase freertos tick speed from 100Hz to 1kHz so that delay() resolution is 1ms
add_idf_sdkconfig_option("CONFIG_FREERTOS_HZ", 1000)
cg.add_platformio_option("board_build.partitions", "partitions.csv")