mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-05 13:14:45 +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()
|
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) {
|
if (a.num == myNodeInfo.my_node_num) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user