Migrate NRF52 devices max nodes down to 80 for now to prevent brownouts (#5346)

This commit is contained in:
Ben Meadors
2024-11-13 18:44:35 -06:00
committed by GitHub
co-authored by GitHub
parent f4908fadd6
commit ec6949fdc0
2 changed files with 12 additions and 1 deletions
+7
View File
@@ -1,6 +1,7 @@
#pragma once
#include <vector>
#include "architecture.h"
#include "mesh/generated/meshtastic/admin.pb.h"
#include "mesh/generated/meshtastic/deviceonly.pb.h"
#include "mesh/generated/meshtastic/localonly.pb.h"
@@ -20,8 +21,14 @@
/// max number of nodes allowed in the mesh
#ifndef MAX_NUM_NODES
#ifdef ARCH_NRF52
#define MAX_NUM_NODES 80
#else
#define MAX_NUM_NODES 100
#endif
#endif
#define MAX_NUM_NODES_FS 100
/// Max number of channels allowed
#define MAX_NUM_CHANNELS (member_size(meshtastic_ChannelFile, channels) / member_size(meshtastic_ChannelFile, channels[0]))