Don't ever delete own node from DB (#3122)

This commit is contained in:
Jonathan Bennett
2024-01-22 20:13:27 -06:00
committed by GitHub
parent 6b5101ec67
commit 4ae5443c3b
2 changed files with 5 additions and 2 deletions

View File

@@ -204,6 +204,8 @@ int32_t PositionModule::runOnce()
}
meshtastic_NodeInfoLite *node = nodeDB.getMeshNode(nodeDB.getNodeNum());
if (node == nullptr)
return RUNONCE_INTERVAL;
// We limit our GPS broadcasts to a max rate
uint32_t now = millis();