From 5a92428bde59cab5cf44df13c7e4d743efb3b72d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 4 Oct 2026 21:55:28 -0500 Subject: [PATCH] [libretiny] Shorten the LN882x zero-size allocation comment --- esphome/components/libretiny/ln882x_zero_malloc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/esphome/components/libretiny/ln882x_zero_malloc.c b/esphome/components/libretiny/ln882x_zero_malloc.c index 77e30b3a7dd..8b34d5f4639 100644 --- a/esphome/components/libretiny/ln882x_zero_malloc.c +++ b/esphome/components/libretiny/ln882x_zero_malloc.c @@ -1,10 +1,4 @@ -/* - * LN882x: heap_5 returns NULL for a zero-size request, and the SDK's - * malloc-failed hook ends in LN_ASSERT(0), which spins until the watchdog - * resets the chip. LibreTiny's scan handler asks for zero entries when a scan - * finds no networks. Linked with -Wl,--wrap=pvPortMalloc so every allocation - * comes through here; drop it once LibreTiny no longer allocates zero entries. - */ +// LN882x: a zero-size pvPortMalloc trips the SDK's malloc-failed LN_ASSERT; ask for 1 byte instead. #ifdef USE_LN882X