diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-12-01 13:35:13 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-12-01 13:35:13 -0600 |
commit | 98e68d87d69d961eb41cf4a5ba21e1b2ac430615 (patch) | |
tree | 12d1d5ce5977dd2adc13c04d96dde2d7385cb390 /Mode | |
parent | 1d6a46f52840caf7f1aa5a3605dcfd44c5916731 (diff) | |
download | mtdot-box-evb-factory-firmware-98e68d87d69d961eb41cf4a5ba21e1b2ac430615.tar.gz mtdot-box-evb-factory-firmware-98e68d87d69d961eb41cf4a5ba21e1b2ac430615.tar.bz2 mtdot-box-evb-factory-firmware-98e68d87d69d961eb41cf4a5ba21e1b2ac430615.zip |
fix bug where sweep kept going after it should have finished
Diffstat (limited to 'Mode')
-rw-r--r-- | Mode/ModeSweep.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Mode/ModeSweep.cpp b/Mode/ModeSweep.cpp index c1ebbb9..a62d79c 100644 --- a/Mode/ModeSweep.cpp +++ b/Mode/ModeSweep.cpp @@ -43,7 +43,7 @@ bool ModeSweep::start() { // compute the total number of surveys we will do _points = generatePoints(); _survey_total = _points.size(); - _survey_current = 0; + _survey_current = 1; _survey_success = 0; _survey_failure = 0; @@ -139,7 +139,6 @@ bool ModeSweep::start() { break; case show_help: _state = in_progress; - _survey_current++; _progress.display(); _progress.updateProgress(_survey_current, _survey_total); if (_lora->getNextTx() > 0) @@ -317,7 +316,7 @@ bool ModeSweep::start() { _survey_current++; _progress.display(); _progress.updateProgress(_survey_current, _survey_total); - send_ping = true; + no_channel_ping = true; } } @@ -327,7 +326,6 @@ bool ModeSweep::start() { logInfo("next tx %lu ms", t); _progress.updateCountdown(t / 1000); } else { - _survey_current++; _progress.display(); _progress.updateProgress(_survey_current, _survey_total); no_channel_ping = false; |