mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 12:20:43 +00:00
Pass by reference -- Thanks Copilot!
This commit is contained in:
parent
b1e3353ceb
commit
18098fb1cb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user