From 97d6d4a7d5d86ca0a65abf7cc85d8679c43b4d1e Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 12 Oct 2020 21:43:37 +0200 Subject: [PATCH] fix cppcheck --- src/LoRa_APRS_iGate.cpp | 11 +++++++---- src/configuration.h | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 6ffd5cd..67a5db0 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -71,10 +71,13 @@ void setup() show_display("OE5BPA", "LoRa APRS iGate & Digi", "by Peter Buchegger", 3000); load_config(); - if(Config.wifi.active) setup_wifi(); - if(Config.wifi.active) setup_ota(); setup_lora(); - if(Config.wifi.active) setup_ntp(); + if(Config.wifi.active) + { + setup_wifi(); + setup_ota(); + setup_ntp(); + } if(Config.aprs_is.active) setup_aprs_is(); setup_timer(); @@ -211,7 +214,7 @@ void loop() } else { - iter++; + iter++; // cppcheck-suppress postfixOperator } } } diff --git a/src/configuration.h b/src/configuration.h index 5536129..309a1f9 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -28,7 +28,7 @@ public: class Beacon { public: - Beacon() : message("LoRa iGATE & Digi, Info: github.com/peterus/LoRa_APRS_iGate") {} + Beacon() : message("LoRa iGATE & Digi, Info: github.com/peterus/LoRa_APRS_iGate"), positionLatitude(0.0), positionLongitude(0.0) {} String message; double positionLatitude;