diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-12-02 16:30:46 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-12-02 16:30:46 -0600 |
commit | 85a5200fe6e04ed51a97f289261bef3c84ffa18c (patch) | |
tree | 797be1207ef522c1e9308b6fb69b0e433ab4d218 /Mode | |
parent | f78db641192b31a3453591ae6a56a29c3a0d77e8 (diff) | |
download | mtdot-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.cpp | 2 | ||||
-rw-r--r-- | Mode/ModeSweep.cpp | 2 |
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..."); |