From 1ee73509b71199c10d36caed9e8d78ff4596142e Mon Sep 17 00:00:00 2001
From: Emilio Corigliano <emilio.corigliano@skywarder.eu>
Date: Wed, 2 Oct 2024 15:17:13 +0200
Subject: [PATCH] [GS] Starting logger only if in ARP mode

---
 src/entrypoints/Groundstation/lyra-gs-entry.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/entrypoints/Groundstation/lyra-gs-entry.cpp b/src/entrypoints/Groundstation/lyra-gs-entry.cpp
index 5dfec3126..ca2d25cd8 100644
--- a/src/entrypoints/Groundstation/lyra-gs-entry.cpp
+++ b/src/entrypoints/Groundstation/lyra-gs-entry.cpp
@@ -213,7 +213,7 @@ int main()
     bool init_fatal = false;
 
 #ifndef NO_SD_LOGGING
-    if (!Logger::getInstance().start())
+    if (!Logger::getInstance().start() && dipRead.isARP)
     {
         LOG_ERR(logger, "ERROR: Failed to start Logger\n");
         ok = false;
-- 
GitLab