summaryrefslogtreecommitdiff
path: root/Mode
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-12-02 16:30:46 -0600
committerMike Fiore <mfiore@multitech.com>2015-12-02 16:30:46 -0600
commit85a5200fe6e04ed51a97f289261bef3c84ffa18c (patch)
tree797be1207ef522c1e9308b6fb69b0e433ab4d218 /Mode
parentf78db641192b31a3453591ae6a56a29c3a0d77e8 (diff)
downloadmtdot-box-evb-factory-firmware-85a5200fe6e04ed51a97f289261bef3c84ffa18c.tar.gz
mtdot-box-evb-factory-firmware-85a5200fe6e04ed51a97f289261bef3c84ffa18c.tar.bz2
mtdot-box-evb-factory-firmware-85a5200fe6e04ed51a97f289261bef3c84ffa18c.zip
actually send data in data packet in Single and Sweep modes
Diffstat (limited to 'Mode')
-rw-r--r--Mode/ModeSingle.cpp2
-rw-r--r--Mode/ModeSweep.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Mode/ModeSingle.cpp b/Mode/ModeSingle.cpp
index 42198e7..bc2cb4f 100644
--- a/Mode/ModeSingle.cpp
+++ b/Mode/ModeSingle.cpp
@@ -294,7 +294,7 @@ bool ModeSingle::start() {
_index++;
}
if (send_data) {
- std::vector<uint8_t> s_data;
+ std::vector<uint8_t> s_data = formatSurveyData(_data);
logInfo("sending data %s %d", _dot->DataRateStr(_data_rate).c_str(), _power);
send_data = false;
_success.updateInfo("Data Sending...");
diff --git a/Mode/ModeSweep.cpp b/Mode/ModeSweep.cpp
index 7ede74d..2ac495f 100644
--- a/Mode/ModeSweep.cpp
+++ b/Mode/ModeSweep.cpp
@@ -364,7 +364,7 @@ bool ModeSweep::start() {
_lora->ping();
}
if (send_data) {
- std::vector<uint8_t> s_data;
+ std::vector<uint8_t> s_data = formatSurveyData(_data);
logInfo("sending data %s %d", _dot->DataRateStr(_data_rate).c_str(), _power);
send_data = false;
_success.updateInfo("Data Sending...");