mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-14 07:21:30 +10:00
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:
co-authored by
thebentern
parent
f9ab2b2cc0
commit
ebc5b63035
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user