Fix NodeDB review follow-ups

Agent-Logs-Url: https://github.com/meshtastic/firmware/sessions/6b1d6cf6-ed6b-43b6-95cb-8e141757664e

Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-09 02:18:57 +00:00
committed by GitHub
co-authored by thebentern
parent f9ab2b2cc0
commit ebc5b63035
9 changed files with 289 additions and 143 deletions
+2 -2
View File
@@ -270,7 +270,7 @@ bool RangeTestModuleRadio::appendFile(const meshtastic_MeshPacket &mp)
fileToAppend.printf("%d,", getFrom(&mp)); // From
fileToAppend.printf("%s,", n ? n->long_name : ""); // Long Name
const meshtastic_PositionLite *senderPos = nodeDB->getNodePosition(n->num);
const meshtastic_PositionLite *senderPos = nodeDB->getNodePosition(getFrom(&mp));
if (senderPos) {
fileToAppend.printf("%f,", senderPos->latitude_i * 1e-7); // Sender Lat
fileToAppend.printf("%f,", senderPos->longitude_i * 1e-7); // Sender Long
@@ -349,4 +349,4 @@ bool RangeTestModuleRadio::removeFile()
return 0;
#endif
}
}