diff --git a/src/lorawan.cpp b/src/lorawan.cpp index fd562cb1..69003d9c 100644 --- a/src/lorawan.cpp +++ b/src/lorawan.cpp @@ -130,8 +130,6 @@ void do_send(osjob_t *j) { if ((cfg.gpsmode) && (gps.location.isValid())) { gps_read(); payload.addGPS(gps_status); - } else { - ESP_LOGI(TAG, "No valid GPS position or GPS disabled"); } #endif diff --git a/src/payload.cpp b/src/payload.cpp index e9d30f25..c1c79c86 100644 --- a/src/payload.cpp +++ b/src/payload.cpp @@ -81,12 +81,12 @@ void TTNplain::addStatus(uint16_t voltage, uint64_t uptime, float cputemp) { TTNserialized::TTNserialized(uint8_t size) { buffer = (uint8_t *)malloc(size); - LoraEncoder message(buffer); + //LoraEncoder message(buffer); } TTNserialized::~TTNserialized(void) { free(buffer); } -void TTNserialized::reset(void) { } +void TTNserialized::reset(void) { delete buffer; } uint8_t TTNserialized::getSize(void) { return sizeof(buffer); } diff --git a/src/payload.h b/src/payload.h index f5096a9a..03311c76 100644 --- a/src/payload.h +++ b/src/payload.h @@ -48,7 +48,6 @@ public: private: uint8_t *buffer; LoraEncoder message(byte *buffer); - //LoraEncoder(byte *buffer); }; #endif