We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 436ecec commit c10adf7Copy full SHA for c10adf7
1 file changed
src/mesh/NodeDB.cpp
@@ -1606,7 +1606,7 @@ void NodeDB::resetNodes(bool keepFavorites)
1606
// Compact favorites into contiguous low slots: zeroing in place leaves one above
1607
// numMeshNodes, invisible to every `i < numMeshNodes` scan yet still serialized to flash.
1608
for (size_t i = 1; i < meshNodes->size(); i++) {
1609
- meshtastic_NodeInfoLite &node = meshNodes->at(i);
+ const meshtastic_NodeInfoLite &node = meshNodes->at(i);
1610
if (nodeInfoLiteIsFavorite(&node)) {
1611
if (numMeshNodes != i)
1612
meshNodes->at(numMeshNodes) = node;
0 commit comments