summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-12-15 16:32:26 -0600
committerMike Fiore <mfiore@multitech.com>2015-12-15 16:32:26 -0600
commit29aae3c2d982a21971211d0628cbf9ee57f14800 (patch)
treef8b22ddad1fdb50bd9a2a21aa7cf367937d4ac40
parent4d9b71c83275f36834291c20fc4fddf3dfec89a7 (diff)
downloadmtdot-box-evb-factory-firmware-29aae3c2d982a21971211d0628cbf9ee57f14800.tar.gz
mtdot-box-evb-factory-firmware-29aae3c2d982a21971211d0628cbf9ee57f14800.tar.bz2
mtdot-box-evb-factory-firmware-29aae3c2d982a21971211d0628cbf9ee57f14800.zip
remove some unnecessary logging, fix bug logging new data rate and power in survey single mode
-rw-r--r--Mode/ModeConfig.cpp1
-rw-r--r--Mode/ModeSingle.cpp4
-rw-r--r--Mode/ModeSweep.cpp4
3 files changed, 1 insertions, 8 deletions
diff --git a/Mode/ModeConfig.cpp b/Mode/ModeConfig.cpp
index 3758e38..87ce449 100644
--- a/Mode/ModeConfig.cpp
+++ b/Mode/ModeConfig.cpp
@@ -1,7 +1,6 @@
#include "ModeConfig.h"
#include "ctype.h"
#include "Command.h"
-#include "MTSLog.h"
#include "ButtonHandler.h"
#include <cstdarg>
#include <deque>
diff --git a/Mode/ModeSingle.cpp b/Mode/ModeSingle.cpp
index 0dee369..72bbc9b 100644
--- a/Mode/ModeSingle.cpp
+++ b/Mode/ModeSingle.cpp
@@ -269,9 +269,7 @@ void ModeSingle::displayHelp() {
}
void ModeSingle::displaySuccess() {
- logInfo("gps lock: %s", _gps->getLockStatus() ? "true" : "false");
uint8_t fix = _gps->getFixStatus();
- logInfo("gps fix: %s", fix == 3 ? "3D" : fix == 2 ? "2D" : "none");
_success.display();
_success.updateId(_index);
// mDot::DataRateStr returns format SF_XX - we only want to display the XX part
@@ -334,6 +332,6 @@ void ModeSingle::incrementRatePower() {
_power += 3;
}
- logInfo("new data rate %u, power %lu", _data_rate, _power);
+ logInfo("new data rate %s, power %lu", mDot::DataRateStr(_data_rate).c_str(), _power);
}
diff --git a/Mode/ModeSweep.cpp b/Mode/ModeSweep.cpp
index c7de333..d34e951 100644
--- a/Mode/ModeSweep.cpp
+++ b/Mode/ModeSweep.cpp
@@ -50,10 +50,6 @@ bool ModeSweep::start() {
_survey_success = 0;
_survey_failure = 0;
- logInfo("%u points", _survey_total);
- for (std::vector<point>::iterator it = _points.begin(); it != _points.end(); it++)
- logInfo("%s,%lu", _dot->DataRateStr(it->first).substr(3).c_str(), it->second);
-
// see if survey data file exists
std::vector<mDot::mdot_file> files = _dot->listUserFiles();
for (std::vector<mDot::mdot_file>::iterator it = files.begin(); it != files.end(); it++) {