Skip to content

Commit

Permalink
Decrease max nodes for NRF52 to 80 as workaround to prevent FS blowou…
Browse files Browse the repository at this point in the history
…ts (#5338)

* Decrease max nodes for NRF52 to 80 as workaround to prevent FS blowouts

* Don't redefine

* Newline
  • Loading branch information
thebentern authored Nov 13, 2024
1 parent ac80481 commit ea150c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mesh/mesh-pb-constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@

/// 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

/// Max number of channels allowed
#define MAX_NUM_CHANNELS (member_size(meshtastic_ChannelFile, channels) / member_size(meshtastic_ChannelFile, channels[0]))
Expand Down

0 comments on commit ea150c3

Please sign in to comment.