mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-30 02:05:22 -04:00
Fix incorrectly placed newline in CSV export (#11535)
* Fix incorrectly placed newline in CSV export * Appease our AI overlords * No comma for you!
This commit is contained in:
1 parent
514b476189
commit
d2eb6b0a2c
1 file changed
+3
-2
@@ -310,9 +310,10 @@ bool RangeTestModuleRadio::appendFile(const meshtastic_MeshPacket &mp)
|
||||
fileToAppend.printf("%d,", mp.hop_limit); // Packet Hop Limit
|
||||
|
||||
// TODO: If quotes are found in the payload, it has to be escaped.
|
||||
fileToAppend.printf("\"%.*s\"\n", (int)p.payload.size, p.payload.bytes);
|
||||
fileToAppend.printf("%i,", mp.rx_rssi); // RX RSSI
|
||||
fileToAppend.printf("\"%.*s\",", (int)p.payload.size, p.payload.bytes);
|
||||
fileToAppend.printf("%i", mp.rx_rssi); // RX RSSI
|
||||
|
||||
fileToAppend.printf("\n");
|
||||
fileToAppend.flush();
|
||||
fileToAppend.close();
|
||||
|
||||
|
||||
Reference in new issue
Block a user