From 133a41790a88761042cacc1324d248877380764e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 11 Feb 2026 22:42:22 -0600 Subject: [PATCH] [analyze_memory] Fix mDNS packet buffer miscategorized as wifi_config Move `packet$` pattern from `wifi_config` to `mdns_lib` category. The `packet$` static buffer is the mDNS packet assembly buffer used by ESP-IDF's mDNS component, not a WiFi config symbol. This was causing 1,460 B of mDNS RAM to appear under wifi_config in ethernet-only builds. Co-Authored-By: Claude Opus 4.6 --- esphome/analyze_memory/const.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/analyze_memory/const.py b/esphome/analyze_memory/const.py index 66866615a6..3bdf555ae3 100644 --- a/esphome/analyze_memory/const.py +++ b/esphome/analyze_memory/const.py @@ -256,7 +256,7 @@ SYMBOL_PATTERNS = { "ipv6_stack": ["nd6_", "ip6_", "mld6_", "icmp6_", "icmp6_input"], # Order matters! More specific categories must come before general ones. # mdns must come before bluetooth to avoid "_mdns_disable_pcb" matching "ble_" pattern - "mdns_lib": ["mdns"], + "mdns_lib": ["mdns", "packet$"], # memory_mgmt must come before wifi_stack to catch mmu_hal_* symbols "memory_mgmt": [ "mem_", @@ -794,7 +794,6 @@ SYMBOL_PATTERNS = { "s_dp", "s_ni", "s_reg_dump", - "packet$", "d_mult_table", "K", "fcstab",