From 2b36c7bc01b5284bdefc9c262c97b56e15cee7a1 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Fri, 20 Jan 2023 15:00:56 +0100 Subject: [PATCH 01/18] Create dependabot.yml --- .github/workflows/dependabot.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..f2c9100 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,19 @@ +name: PlatformIO Dependabot + +on: + workflow_dispatch: + schedule: + # Runs every Saturday at 00:00 + - cron: '0 0 * * 6' + +jobs: + dependabot: + runs-on: ubuntu-latest + name: run PlatformIO Dependabot + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: run PlatformIO Dependabot + uses: peterus/platformio_dependabot@v1.0.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} From 160c4882c010007d0e7d580ca4a5118b54a98a58 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Jan 2023 14:09:00 +0000 Subject: [PATCH 02/18] Bump ArduinoJson to 6.20.0 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 1d0cf2a..8bc5430 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,7 +10,7 @@ monitor_filters = esp32_exception_decoder lib_deps = adafruit/Adafruit GFX Library @ 1.7.5 adafruit/Adafruit SSD1306 @ 2.4.0 - bblanchon/ArduinoJson @ 6.17.0 + bblanchon/ArduinoJson @ 6.20.0 lewisxhe/AXP202X_Library @ 1.1.2 sandeepmistry/LoRa @ 0.7.2 peterus/APRS-Decoder-Lib @ 0.0.6 From 16beaadcec09908da6d6f96b8dcb228d9708a8c4 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Jan 2023 14:09:05 +0000 Subject: [PATCH 03/18] Bump espressif32 to 6.0.0 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 1d0cf2a..ca80f2b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -2,7 +2,7 @@ default_envs = ttgo-t-beam-v1 [env] -platform = espressif32 @ 3.0.0 +platform = espressif32 @ 6.0.0 framework = arduino lib_ldf_mode = deep+ monitor_speed = 115200 From a8f69daf87a0c4ebd2cfc7682d3f752d76938cf5 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Jan 2023 14:35:41 +0000 Subject: [PATCH 04/18] Bump LoRa to 0.8.0 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 1d0cf2a..e1cd1c1 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,7 +12,7 @@ lib_deps = adafruit/Adafruit SSD1306 @ 2.4.0 bblanchon/ArduinoJson @ 6.17.0 lewisxhe/AXP202X_Library @ 1.1.2 - sandeepmistry/LoRa @ 0.7.2 + sandeepmistry/LoRa @ 0.8.0 peterus/APRS-Decoder-Lib @ 0.0.6 mikalhart/TinyGPSPlus @ 1.0.2 paulstoffregen/Time @ 1.6 From a51e5de3cb1d8dd623a2286b3c6ef5ae014cd70c Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Fri, 20 Jan 2023 16:27:49 +0100 Subject: [PATCH 05/18] Update dependabot.yml --- .github/workflows/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index f2c9100..bbb85ca 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -14,6 +14,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: run PlatformIO Dependabot - uses: peterus/platformio_dependabot@v1.0.0 + uses: peterus/platformio_dependabot@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} From f70c67d45623ee2f5ed6d988de70d0fbf5e523ed Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Fri, 20 Jan 2023 16:35:51 +0100 Subject: [PATCH 06/18] Update dependabot.yml --- .github/workflows/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index bbb85ca..d30aea0 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -14,6 +14,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: run PlatformIO Dependabot - uses: peterus/platformio_dependabot@v1 + uses: peterus/platformio_dependabot@v1.0.1 with: github_token: ${{ secrets.GITHUB_TOKEN }} From df63b8039b69255dd6099e7d046c5067b13acab6 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Jan 2023 15:56:39 +0000 Subject: [PATCH 07/18] Bump Adafruit SSD1306 to 2.5.7 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 1d0cf2a..f483090 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,7 +9,7 @@ monitor_speed = 115200 monitor_filters = esp32_exception_decoder lib_deps = adafruit/Adafruit GFX Library @ 1.7.5 - adafruit/Adafruit SSD1306 @ 2.4.0 + adafruit/Adafruit SSD1306 @ 2.5.7 bblanchon/ArduinoJson @ 6.17.0 lewisxhe/AXP202X_Library @ 1.1.2 sandeepmistry/LoRa @ 0.7.2 From b89010b4221271f4fdafcda6daf6364dd8978c7a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Jan 2023 15:56:46 +0000 Subject: [PATCH 08/18] Bump esp-logger to 1.0.0 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 1d0cf2a..8b76ce4 100644 --- a/platformio.ini +++ b/platformio.ini @@ -17,7 +17,7 @@ lib_deps = mikalhart/TinyGPSPlus @ 1.0.2 paulstoffregen/Time @ 1.6 shaggydog/OneButton @ 1.5.0 - peterus/esp-logger @ 0.0.1 + peterus/esp-logger @ 1.0.0 check_tool = cppcheck check_flags = cppcheck: --suppress=*:*.pio\* --inline-suppr -DCPPCHECK From c520e2c8417d12ef18abafad8c349345a1a8c2dd Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Jan 2023 15:56:49 +0000 Subject: [PATCH 09/18] Bump Adafruit GFX Library to 1.11.5 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 1d0cf2a..03becbb 100644 --- a/platformio.ini +++ b/platformio.ini @@ -8,7 +8,7 @@ lib_ldf_mode = deep+ monitor_speed = 115200 monitor_filters = esp32_exception_decoder lib_deps = - adafruit/Adafruit GFX Library @ 1.7.5 + adafruit/Adafruit GFX Library @ 1.11.5 adafruit/Adafruit SSD1306 @ 2.4.0 bblanchon/ArduinoJson @ 6.17.0 lewisxhe/AXP202X_Library @ 1.1.2 From ab3dbd44df30550cd22b1131788267cde80dc661 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Jan 2023 15:56:52 +0000 Subject: [PATCH 10/18] Bump TinyGPSPlus to 1.0.3 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 1d0cf2a..25adc26 100644 --- a/platformio.ini +++ b/platformio.ini @@ -14,7 +14,7 @@ lib_deps = lewisxhe/AXP202X_Library @ 1.1.2 sandeepmistry/LoRa @ 0.7.2 peterus/APRS-Decoder-Lib @ 0.0.6 - mikalhart/TinyGPSPlus @ 1.0.2 + mikalhart/TinyGPSPlus @ 1.0.3 paulstoffregen/Time @ 1.6 shaggydog/OneButton @ 1.5.0 peterus/esp-logger @ 0.0.1 From 8cfd67a6ba67afd8724ed3e407d789b30ce584c1 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Jan 2023 15:56:56 +0000 Subject: [PATCH 11/18] Bump AXP202X_Library to 1.1.3 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 1d0cf2a..bac4bc7 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,7 +11,7 @@ lib_deps = adafruit/Adafruit GFX Library @ 1.7.5 adafruit/Adafruit SSD1306 @ 2.4.0 bblanchon/ArduinoJson @ 6.17.0 - lewisxhe/AXP202X_Library @ 1.1.2 + lewisxhe/AXP202X_Library @ 1.1.3 sandeepmistry/LoRa @ 0.7.2 peterus/APRS-Decoder-Lib @ 0.0.6 mikalhart/TinyGPSPlus @ 1.0.2 From 9e6bbcc28672c29757d6d68dca3ef996b710b920 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sat, 21 Jan 2023 12:43:09 +0100 Subject: [PATCH 12/18] Update platformio.ini --- platformio.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platformio.ini b/platformio.ini index 80c1417..7733578 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,6 +10,8 @@ monitor_filters = esp32_exception_decoder lib_deps = adafruit/Adafruit GFX Library @ 1.7.5 adafruit/Adafruit SSD1306 @ 2.5.7 + bblanchon/ArduinoJson @ 6.20.0 + lewisxhe/AXP202X_Library @ 1.1.3 sandeepmistry/LoRa @ 0.7.2 peterus/APRS-Decoder-Lib @ 0.0.6 mikalhart/TinyGPSPlus @ 1.0.3 From b772240bbfad5c3daed5f96c02115bb37ed869db Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sat, 21 Jan 2023 12:59:42 +0100 Subject: [PATCH 13/18] Update dependabot.yml --- .github/workflows/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index d30aea0..bbb85ca 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -14,6 +14,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: run PlatformIO Dependabot - uses: peterus/platformio_dependabot@v1.0.1 + uses: peterus/platformio_dependabot@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} From 8202f720167c60f87fe497b57cd7434c5a6b1a56 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sat, 21 Jan 2023 13:47:05 +0100 Subject: [PATCH 14/18] update logger calls --- src/LoRa_APRS_Tracker.cpp | 46 +++++++++++++++++++++------------------ src/configuration.cpp | 12 +++++----- src/display.cpp | 7 +++--- 3 files changed, 35 insertions(+), 30 deletions(-) diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index 04db817..e399108 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -15,6 +15,8 @@ #define VERSION "22.19.0" +logging::Logger logger; + Configuration Config; BeaconManager BeaconMan; @@ -65,9 +67,9 @@ void setup() { #ifdef TTGO_T_Beam_V1_0 Wire.begin(SDA, SCL); if (!powerManagement.begin(Wire)) { - logPrintlnI("AXP192 init done!"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "AXP192", "init done!"); } else { - logPrintlnE("AXP192 init failed!"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "AXP192", "init failed!"); } powerManagement.activateLoRa(); powerManagement.activateOLED(); @@ -76,8 +78,8 @@ void setup() { #endif delay(500); - logPrintlnI("LoRa APRS Tracker by OE5BPA (Peter Buchegger)"); - logPrintlnI("Version: " VERSION); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "LoRa APRS Tracker by OE5BPA (Peter Buchegger)"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "Version: " VERSION); setup_display(); show_display("OE5BPA", "LoRa APRS Tracker", "by Peter Buchegger", "Version: " VERSION, 2000); @@ -105,9 +107,9 @@ void setup() { } userButton.attachDoubleClick(toggle_display); - logPrintlnI("Smart Beacon is " + getSmartBeaconState()); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "Smart Beacon is: %s", getSmartBeaconState()); show_display("INFO", "Smart Beacon is " + getSmartBeaconState(), 1000); - logPrintlnI("setup done..."); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "setup done..."); delay(500); } @@ -137,10 +139,11 @@ void loop() { if (gps_loc_update != gps_loc_update_valid) { gps_loc_update_valid = gps_loc_update; - if (gps_loc_update) - logPrintlnI("GPS fix state went to VALID"); - else - logPrintlnI("GPS fix state went to INVALID"); + if (gps_loc_update) { + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Loop", "GPS fix state went to VALID"); + } else { + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Loop", "GPS fix state went to INVALID"); + } } static double currentHeading = 0; @@ -292,7 +295,7 @@ void loop() { msg.getBody()->setData(aprsmsg); String data = msg.encode(); - logPrintlnD(data); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, "Loop", "%s", data); show_display("<< TX >>", data); if (Config.ptt.active) { @@ -351,8 +354,9 @@ void loop() { } if ((Config.debug == false) && (millis() > 5000 && gps.charsProcessed() < 10)) { - logPrintlnE("No GPS frames detected! Try to reset the GPS Chip with this " - "firmware: https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "GPS", + "No GPS frames detected! Try to reset the GPS Chip with this " + "firmware: https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset"); show_display("No GPS frames detected!", "Try to reset the GPS Chip", "https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset", 2000); } } @@ -362,8 +366,9 @@ void load_config() { Config = confmg.readConfiguration(); BeaconMan.loadConfig(Config.beacons); if (BeaconMan.getCurrentBeaconConfig()->callsign == "NOCALL-10") { - logPrintlnE("You have to change your settings in 'data/tracker.json' and " - "upload it via \"Upload File System image\"!"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "Config", + "You have to change your settings in 'data/tracker.json' and " + "upload it via \"Upload File System image\"!"); show_display("ERROR", "You have to change your settings in 'data/tracker.json' and " "upload it via \"Upload File System image\"!"); while (true) { @@ -372,16 +377,15 @@ void load_config() { } void setup_lora() { - logPrintlnI("Set SPI pins!"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "LoRa", "Set SPI pins!"); SPI.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS); - logPrintlnI("Set LoRa pins!"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "LoRa", "Set LoRa pins!"); LoRa.setPins(LORA_CS, LORA_RST, LORA_IRQ); long freq = Config.lora.frequencyTx; - logPrintI("frequency: "); - logPrintlnI(String(freq)); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "LoRa", "frequency: %d", freq); if (!LoRa.begin(freq)) { - logPrintlnE("Starting LoRa failed!"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "LoRa", "Starting LoRa failed!"); show_display("ERROR", "Starting LoRa failed!"); while (true) { } @@ -392,7 +396,7 @@ void setup_lora() { LoRa.enableCrc(); LoRa.setTxPower(Config.lora.power); - logPrintlnI("LoRa init done!"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "LoRa", "LoRa init done!"); show_display("INFO", "LoRa init done!", 2000); } diff --git a/src/configuration.cpp b/src/configuration.cpp index e69d263..dc9f572 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -7,12 +7,14 @@ #include "configuration.h" +extern logging::Logger logger; + ConfigurationManagement::ConfigurationManagement(String FilePath) : mFilePath(FilePath) { if (!SPIFFS.begin(true)) { - logPrintlnE("Mounting SPIFFS was not possible. Trying to format SPIFFS..."); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "Configuration", "Mounting SPIFFS was not possible. Trying to format SPIFFS..."); SPIFFS.format(); if (!SPIFFS.begin()) { - logPrintlnE("Formating SPIFFS was not okay!"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "Configuration", "Formatting SPIFFS was not okay!"); } } } @@ -21,14 +23,14 @@ ConfigurationManagement::ConfigurationManagement(String FilePath) : mFilePath(Fi Configuration ConfigurationManagement::readConfiguration() { File file = SPIFFS.open(mFilePath); if (!file) { - logPrintlnE("Failed to open file for reading..."); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "Configuration", "Failed to open file for reading..."); return Configuration(); } DynamicJsonDocument data(2048); DeserializationError error = deserializeJson(data, file); if (error) { - logPrintlnE("Failed to read file, using default configuration."); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "Configuration", "Failed to read file, using default configuration."); } file.close(); @@ -89,7 +91,7 @@ Configuration ConfigurationManagement::readConfiguration() { void ConfigurationManagement::writeConfiguration(Configuration conf) { File file = SPIFFS.open(mFilePath, "w"); if (!file) { - logPrintlnE("Failed to open file for writing..."); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "Configuration", "Failed to open file for writing..."); return; } DynamicJsonDocument data(2048); diff --git a/src/display.cpp b/src/display.cpp index e77c566..5c3effa 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -7,6 +7,8 @@ #include "display.h" #include "pins.h" +extern logging::Logger logger; + Adafruit_SSD1306 display(128, 64, &Wire, OLED_RST); // cppcheck-suppress unusedFunction @@ -18,7 +20,7 @@ void setup_display() { Wire.begin(OLED_SDA, OLED_SCL); if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3c, false, false)) { - logPrintlnE("SSD1306 allocation failed"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_ERROR, "SSD1306", "allocation failed!"); while (true) { } } @@ -35,12 +37,9 @@ void setup_display() { // cppcheck-suppress unusedFunction void display_toggle(bool toggle) { - logPrintI("Toggling display: "); if (toggle) { - logPrintlnI("On"); display.ssd1306_command(SSD1306_DISPLAYON); } else { - logPrintlnI("Off"); display.ssd1306_command(SSD1306_DISPLAYOFF); } } From 22efdb6798a4dcf35a50a7a6e3c70b59e3f079c2 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 15 Feb 2023 20:05:40 +0000 Subject: [PATCH 15/18] Bump ArduinoJson to 6.20.1 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index bdf9538..0b49277 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,7 +10,7 @@ monitor_filters = esp32_exception_decoder lib_deps = adafruit/Adafruit GFX Library @ 1.11.5 adafruit/Adafruit SSD1306 @ 2.5.7 - bblanchon/ArduinoJson @ 6.20.0 + bblanchon/ArduinoJson @ 6.20.1 lewisxhe/AXP202X_Library @ 1.1.3 sandeepmistry/LoRa @ 0.8.0 peterus/APRS-Decoder-Lib @ 0.0.6 From 4b6caf55e6f434de741014c99daf7db7b9c760d2 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 15 Feb 2023 20:05:43 +0000 Subject: [PATCH 16/18] Bump espressif32 to 6.0.1 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index bdf9538..ab348b2 100644 --- a/platformio.ini +++ b/platformio.ini @@ -2,7 +2,7 @@ default_envs = ttgo-t-beam-v1 [env] -platform = espressif32 @ 6.0.0 +platform = espressif32 @ 6.0.1 framework = arduino lib_ldf_mode = deep+ monitor_speed = 115200 From a9ecf54e3e13c5e3d7a68c990884df1203f5d95e Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sat, 18 Feb 2023 10:12:12 +0100 Subject: [PATCH 17/18] Update dependabot.yml --- .github/workflows/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index bbb85ca..2b00084 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -16,4 +16,4 @@ jobs: - name: run PlatformIO Dependabot uses: peterus/platformio_dependabot@v1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.DEPENDABOT_PAT }} From 71d1b9fb5e1241c663976fdbd3ea1ef17d0b16d0 Mon Sep 17 00:00:00 2001 From: Tomas Zejdlik Date: Wed, 22 Feb 2023 23:21:54 +0100 Subject: [PATCH 18/18] String Object needs to be converted to C-style null terminated string in loggng function --- src/LoRa_APRS_Tracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index e399108..f4898f1 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -295,7 +295,7 @@ void loop() { msg.getBody()->setData(aprsmsg); String data = msg.encode(); - logger.log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, "Loop", "%s", data); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, "Loop", "%s", data.c_str()); show_display("<< TX >>", data); if (Config.ptt.active) {