Disable automatic NodeInfo request when NodeDB is full (#5255)

This commit is contained in:
GUVWAF
2024-11-04 21:06:12 +01:00
committed by GitHub
parent 50dac38a1b
commit f3b698905d
3 changed files with 14 additions and 5 deletions

View File

@@ -147,6 +147,9 @@ class NodeDB
meshtastic_NodeInfoLite *getMeshNode(NodeNum n);
size_t getNumMeshNodes() { return numMeshNodes; }
// returns true if the maximum number of nodes is reached or we are running low on memory
bool isFull();
void clearLocalPosition();
void setLocalPosition(meshtastic_Position position, bool timeOnly = false)