diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-12-11 10:30:08 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-12-11 10:30:08 -0600 |
commit | 0fa95cb14aff999c40255d859ac866ea1b56d9c0 (patch) | |
tree | cdac296328a8416f13fe30d550d2f907c3900048 | |
parent | c28f3e07a6320f48476fd4dad5cca0011669e49f (diff) | |
download | mtdot-box-evb-factory-firmware-0fa95cb14aff999c40255d859ac866ea1b56d9c0.tar.gz mtdot-box-evb-factory-firmware-0fa95cb14aff999c40255d859ac866ea1b56d9c0.tar.bz2 mtdot-box-evb-factory-firmware-0fa95cb14aff999c40255d859ac866ea1b56d9c0.zip |
fix build break from merge
-rw-r--r-- | Mode/Mode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mode/Mode.cpp b/Mode/Mode.cpp index ef343fd..e20477c 100644 --- a/Mode/Mode.cpp +++ b/Mode/Mode.cpp @@ -95,7 +95,7 @@ bool Mode::appendDataFile(const DataItem& data) { if (data.status) { float down_snr = (float)data.link.down.snr / 10.0; - snprintf(stats_buf, sizeof(stats_buf), "%d,%d,%d,%2.1f", + snprintf(stats_buf, sizeof(stats_buf), "%lu,%ld,%d,%2.1f", data.link.up.gateways, data.link.up.dBm, abs(data.link.down.rssi), @@ -249,7 +249,7 @@ std::vector<uint8_t> Mode::formatSurveyData(DataItem& data) { convertS.f_s=data.link.down.rssi; send_data.push_back(convertS.t_u[1]); send_data.push_back(convertS.t_u[0]); - send_data.push_back((data.ping.down.snr/10) & 0xFF); + send_data.push_back((data.link.down.snr/10) & 0xFF); // collect GPS data if GPS device detected if (_gps->gpsDetected() && ((_data_rate != mDot::SF_10) || (_band == mDot::FB_868))){ |