mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-01 23:50:38 +00:00
Pass by reference -- Thanks Copilot!
This commit is contained in:
@@ -1339,7 +1339,7 @@ bool NodeDB::saveNodeDatabaseToDisk()
|
||||
|
||||
void NodeDB::sortMeshDB()
|
||||
{
|
||||
std::sort(meshNodes->begin(), meshNodes->end(), [](const meshtastic_NodeInfoLite a, const meshtastic_NodeInfoLite b) {
|
||||
std::sort(meshNodes->begin(), meshNodes->end(), [](const meshtastic_NodeInfoLite &a, const meshtastic_NodeInfoLite &b) {
|
||||
if (a.num == myNodeInfo.my_node_num) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user