Compare commits

..

No commits in common. "623203ca3bbaecaf66241ba658d992e511ec5628" and "893efe4f11b4549e2e5d38a69990740b28787054" have entirely different histories.

2 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit 04f21f5c7238b8e02f794d9282c4786752634b3c
Subproject commit 834915aa046532da0bd8478c250eb33847e9518f

View File

@ -1219,7 +1219,9 @@ meshtastic_NodeInfoLite *NodeDB::getOrCreateMeshNode(NodeNum n)
if (!lite) {
if (isFull()) {
LOG_INFO("Node database full with %i nodes and %i bytes free. Erasing oldest entry", numMeshNodes,
if (screen)
screen->print("Warn: node database full!\nErasing oldest entry\n");
LOG_WARN("Node database full with %i nodes and %i bytes free! Erasing oldest entry", numMeshNodes,
memGet.getFreeHeap());
// look for oldest node and erase it
uint32_t oldest = UINT32_MAX;
@ -1283,4 +1285,4 @@ void recordCriticalError(meshtastic_CriticalErrorCode code, uint32_t address, co
LOG_ERROR("A critical failure occurred, portduino is exiting");
exit(2);
#endif
}
}