1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[libretiny] Disable unused LWIP statistics to save RAM and flash (#13404)

This commit is contained in:
J. Nick Koston
2026-01-20 17:53:10 -10:00
committed by GitHub
parent 346f3d38d5
commit 7a2734fae9

View File

@@ -382,4 +382,11 @@ async def component_to_code(config):
"custom_options.sys_config#h", _BK7231N_SYS_CONFIG_OPTIONS
)
# Disable LWIP statistics to save RAM - not needed in production
# Must explicitly disable all sub-stats to avoid redefinition warnings
cg.add_platformio_option(
"custom_options.lwip",
["LWIP_STATS=0", "MEM_STATS=0", "MEMP_STATS=0"],
)
await cg.register_component(var, config)