From 006b29d17791c411477d943630fe4b3702d1f19e Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 20 Mar 2022 01:03:42 +0100 Subject: [PATCH] fixing missing function --- lib/System/System.cpp | 4 ++++ src/LoRa_APRS_iGate.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/System/System.cpp b/lib/System/System.cpp index e074745..18b89d4 100644 --- a/lib/System/System.cpp +++ b/lib/System/System.cpp @@ -38,3 +38,7 @@ bool System::isWifiEthConnected() const { void System::connectedViaWifiEth(bool status) { _isWifiEthConnected = status; } + +logging::Logger &System::getLogger() { + return _logger; +} diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 4171138..d795da2 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -47,6 +47,7 @@ RouterTask routerTask(fromModem, toModem, toAprsIs, toMQTT); void setup() { Serial.begin(115200); LoRaSystem.getLogger().setSerial(&Serial); + setWiFiLogger(&LoRaSystem.getLogger()); delay(500); LoRaSystem.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, MODULE_NAME, "LoRa APRS iGate by OE5BPA (Peter Buchegger)"); LoRaSystem.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, MODULE_NAME, "Version: %s", VERSION);