From c47ff75323bf8a18490c1f49c8da7567d862faa1 Mon Sep 17 00:00:00 2001 From: Clive Blackledge Date: Tue, 23 Sep 2025 12:40:00 -0700 Subject: [PATCH] Updating to 800 if psram_size is >4MB. --- src/mesh/mesh-pb-constants.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesh/mesh-pb-constants.h b/src/mesh/mesh-pb-constants.h index e83bdc536..8679f364c 100644 --- a/src/mesh/mesh-pb-constants.h +++ b/src/mesh/mesh-pb-constants.h @@ -52,10 +52,8 @@ static_assert(sizeof(meshtastic_NodeInfoLite) <= 200, "NodeInfoLite size increas static inline int get_max_num_nodes() { uint32_t psram_size = ESP.getPsramSize() / (1024 * 1024); // Convert Bytes to MB - if (psram_size >= 8) { + if (psram_size >= 4) { return 800; - } else if (psram_size >= 4) { - return 400; } uint32_t flash_size = ESP.getFlashChipSize() / (1024 * 1024); // Fallback based on flash size