From 705a68cdae6376f1d7effdac0adb4b49fff07fd2 Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Thu, 7 Jan 2016 11:03:22 -0600 Subject: add header with column labels when survey data file gets printed --- CommandTerminal/CmdGetSurveyDataFile.cpp | 3 +++ Layout/LayoutConfig.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 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); } -- cgit v1.2.3