summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2016-01-07 11:03:22 -0600
committerMike Fiore <mfiore@multitech.com>2016-01-07 11:03:22 -0600
commit705a68cdae6376f1d7effdac0adb4b49fff07fd2 (patch)
treea8d90d02177f0b34d5328282399b980e891d1214
parent4a7f9e8e5bb6377011d63bddfbbd0f5edda8637a (diff)
downloadmtdot-box-evb-factory-firmware-705a68cdae6376f1d7effdac0adb4b49fff07fd2.tar.gz
mtdot-box-evb-factory-firmware-705a68cdae6376f1d7effdac0adb4b49fff07fd2.tar.bz2
mtdot-box-evb-factory-firmware-705a68cdae6376f1d7effdac0adb4b49fff07fd2.zip
add header with column labels when survey data file gets printed
-rw-r--r--CommandTerminal/CmdGetSurveyDataFile.cpp3
-rw-r--r--Layout/LayoutConfig.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/CommandTerminal/CmdGetSurveyDataFile.cpp b/CommandTerminal/CmdGetSurveyDataFile.cpp
index 79a42f5..3351c70 100644
--- a/CommandTerminal/CmdGetSurveyDataFile.cpp
+++ b/CommandTerminal/CmdGetSurveyDataFile.cpp
@@ -22,6 +22,9 @@ uint32_t CmdGetSurveyDataFile::action(std::vector<std::string> args)
return 1;
}
+ // print header line with column labels
+ _serial.writef("ID,Status,Lock,Lat,Long,Alt,Time,Gateways,Margin,RSSIdown,SNRdown,DataRate,Power\r\n");
+
while (read < file.size) {
read_size = (file.size - read) > buf_size ? buf_size : file.size - read;
int size = _dot->readUserFile(file, (void*)buf, read_size);
diff --git a/Layout/LayoutConfig.cpp b/Layout/LayoutConfig.cpp
index dd044fa..e67b37a 100644
--- a/Layout/LayoutConfig.cpp
+++ b/Layout/LayoutConfig.cpp
@@ -69,5 +69,5 @@ void LayoutConfig::update3of3() {
writeField(_fHeader, string("3 of 3"), true);
writeField(_fMsg1, string("Run com s/w on"), true);
writeField(_fMsg2, string("new TTY/COM at"), true);
- writeField(_fMsg3, string("115200bps."), true);
+ writeField(_fMsg3, string("115200 bps."), true);
}