Renaming node to coldNode to avoid shadowing.

This commit is contained in:
Clive Blackledge 2025-09-23 13:58:36 -07:00 committed by Tom Fifield
parent 19d59a116d
commit 1d896f1bba

View File

@ -2265,9 +2265,9 @@ meshtastic_NodeInfoLite *NodeDB::getOrCreateMeshNode(NodeNum n)
oldest = hot.last_heard; oldest = hot.last_heard;
oldestIndex = i; oldestIndex = i;
} }
const auto &node = psramMeshNodes[i]; const auto &coldNode = psramMeshNodes[i];
if (!(hot.flags & HOT_FLAG_IS_FAVORITE) && !(hot.flags & HOT_FLAG_IS_IGNORED) && node.user.public_key.size == 0 && if (!(hot.flags & HOT_FLAG_IS_FAVORITE) && !(hot.flags & HOT_FLAG_IS_IGNORED) &&
hot.last_heard < oldestBoring) { coldNode.user.public_key.size == 0 && hot.last_heard < oldestBoring) {
oldestBoring = hot.last_heard; oldestBoring = hot.last_heard;
oldestBoringIndex = i; oldestBoringIndex = i;
} }