From c002966c60a3cf3c5c798e61c361b98aeb39ffda Mon Sep 17 00:00:00 2001 From: MUSTARDTIGERFPV Date: Wed, 9 Sep 2026 01:36:09 -0700 Subject: [PATCH] Restore the full repeater feature set on the LINKFLOW 900 The variant carried a "classic ESP32 DRAM strip": MAX_CLIENTS cut from 32 to 2, the flood rule engine and group moderation compiled out, and the filter, scope and moderation tables cut to a single slot each. All of it existed to squeeze fixed .bss tables into classic ESP32's ~124 KiB static DRAM window. Those tables now live on the heap, so the strip buys nothing. Removing it also clears a real trap: with two client slots, once both held a protected manager (admin, region manager or filter manager) putClient() could no longer allocate, and every further admin login was refused with no reply to the operator. Static DRAM with the full feature set restored: 70,764 / 124,580 occupied, 53,816 free (8,192 required) --- variants/geprc_linkflow_900/platformio.ini | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/variants/geprc_linkflow_900/platformio.ini b/variants/geprc_linkflow_900/platformio.ini index 400befa4..7b06a8f4 100644 --- a/variants/geprc_linkflow_900/platformio.ini +++ b/variants/geprc_linkflow_900/platformio.ini @@ -116,19 +116,6 @@ build_flags = -D ADVERT_LON=0.0 -D ADMIN_PASSWORD='"password"' -D MAX_NEIGHBOURS=50 - ; --- classic ESP32 DRAM strip --------------------------------------- - ; These are all fixed .bss tables, sized for a comfortable target and - ; allocated whether or not a single rule is ever configured. Stock cost on - ; this build was ~18.5 KiB of flood tables plus 9.6 KiB of client ACL. - ; The node still repeats; it just has almost no room for forwarding rules, - ; scope rewrites, group moderation, or logged-in clients. - -D MAX_CLIENTS=2 ; was 32, at ~300 B/entry - -D MESH_ENABLE_FLOOD_RULE_ENGINE=0 ; drops the forward-rule engine - -D FLOOD_PACKET_FILTER_SLOTS=1 ; was 63, at 200 B/entry - -D FLOOD_CHANNEL_SCOPE_SLOTS=1 ; ESP32 default is 255; also drives - ; DIRECT_SCOPE and SCOPE_REQUIRE - -D MESH_ENABLE_FLOOD_GROUP_MODERATION=0 ; drops text moderation - -D FLOOD_GROUP_MODERATION_SLOTS=1 ; was 16, at 124 B/entry build_src_filter = ${GEPRC_Linkflow_900.build_src_filter} +<../examples/simple_repeater> lib_deps =