sforkowany z mirror/meshtastic-firmware
Fix for #874 - RangeTest Plugin header fields swapped for elevation and SNR1.2-legacy
rodzic
4e5ac1ac07
commit
3981d2e1f6
|
@ -237,7 +237,7 @@ bool RangeTestPluginRadio::appendFile(const MeshPacket &mp)
|
||||||
|
|
||||||
// Print the CSV header
|
// Print the CSV header
|
||||||
if (fileToWrite.println(
|
if (fileToWrite.println(
|
||||||
"time,from,sender name,sender lat,sender long,rx lat,rx long,rx snr,rx elevation,distance,payload")) {
|
"time,from,sender name,sender lat,sender long,rx lat,rx long,rx elevation,rx snr,distance,payload")) {
|
||||||
DEBUG_MSG("File was written\n");
|
DEBUG_MSG("File was written\n");
|
||||||
} else {
|
} else {
|
||||||
DEBUG_MSG("File write failed\n");
|
DEBUG_MSG("File write failed\n");
|
||||||
|
|
|
@ -197,10 +197,10 @@ ProcessMessage StoreForwardPlugin::handleReceived(const MeshPacket &mp)
|
||||||
if (radioConfig.preferences.store_forward_plugin_enabled) {
|
if (radioConfig.preferences.store_forward_plugin_enabled) {
|
||||||
|
|
||||||
if (getFrom(&mp) != nodeDB.getNodeNum()) {
|
if (getFrom(&mp) != nodeDB.getNodeNum()) {
|
||||||
printPacket("----- PACKET FROM RADIO -----", &mp);
|
printPacket("PACKET FROM RADIO", &mp);
|
||||||
// uint32_t sawTime = storeForwardPlugin->sawNode(getFrom(&mp) & 0xffffffff);
|
// uint32_t sawTime = storeForwardPlugin->sawNode(getFrom(&mp) & 0xffffffff);
|
||||||
// DEBUG_MSG("We last saw this node (%u), %u sec ago\n", mp.from & 0xffffffff, (millis() - sawTime) / 1000);
|
// DEBUG_MSG("We last saw this node (%u), %u sec ago\n", mp.from & 0xffffffff, (millis() - sawTime) / 1000);
|
||||||
DEBUG_MSG(" -------------- ");
|
// DEBUG_MSG(" -------------- ");
|
||||||
if (mp.decoded.portnum == PortNum_TEXT_MESSAGE_APP) {
|
if (mp.decoded.portnum == PortNum_TEXT_MESSAGE_APP) {
|
||||||
DEBUG_MSG("Packet came from - PortNum_TEXT_MESSAGE_APP\n");
|
DEBUG_MSG("Packet came from - PortNum_TEXT_MESSAGE_APP\n");
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue