summaryrefslogtreecommitdiff
path: root/Mode
diff options
context:
space:
mode:
Diffstat (limited to 'Mode')
-rw-r--r--Mode/Mode.cpp8
-rw-r--r--Mode/ModeSingle.cpp1
2 files changed, 0 insertions, 9 deletions
diff --git a/Mode/Mode.cpp b/Mode/Mode.cpp
index d05f4b0..4d5af8a 100644
--- a/Mode/Mode.cpp
+++ b/Mode/Mode.cpp
@@ -66,14 +66,6 @@ bool Mode::appendDataFile(const DataItem& data) {
char stats_buf[32];
size_t size;
- memset(main_buf, 0, sizeof(main_buf));
- memset(id_buf, 0, sizeof(id_buf));
- memset(lat_buf, 0, sizeof(lat_buf));
- memset(lon_buf, 0, sizeof(lon_buf));
- memset(alt_buf, 0, sizeof(alt_buf));
- memset(time_buf, 0, sizeof(time_buf));
- memset(stats_buf, 0, sizeof(stats_buf));
-
snprintf(id_buf, sizeof(id_buf), "%c%ld", (data.type == single) ? 'P' : 'S', data.index);
// if we had GPS lock, format GPS data
diff --git a/Mode/ModeSingle.cpp b/Mode/ModeSingle.cpp
index 52eb64a..105fa16 100644
--- a/Mode/ModeSingle.cpp
+++ b/Mode/ModeSingle.cpp
@@ -295,7 +295,6 @@ std::string ModeSingle::formatRatePower() {
char buf[8];
size_t size;
- memset(buf, 0, sizeof(buf));
msg += "DR=";
msg += _dot->DataRateStr(_data_rate).substr(3);
msg += " P=";