From e9169342140f255ab4dce97ad12439c8ab47d951 Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 21 Apr 2025 00:28:26 +0200 Subject: [PATCH] Reduce verbosity, don't start networking on RPi 1 --- src/minidexed.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 18df600..8d28727 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -362,9 +362,12 @@ bool CMiniDexed::Initialize (void) { return false; } + + if (m_pConfig->GetNetworkEnabled()) { + InitNetwork(); // returns bool but we continue even if something goes wrong + LOGNOTE("CMiniDexed::Initialize: InitNetwork() called"); + } #endif - InitNetwork(); // returns bool but we continue even if something goes wrong - LOGNOTE("CMiniDexed::Initialize: InitNetwork() called"); return true; } @@ -2240,7 +2243,6 @@ unsigned CMiniDexed::getModController (unsigned controller, unsigned parameter, void CMiniDexed::UpdateNetwork() { - LOGNOTE("CMiniDexed::UpdateNetwork called"); //CNetSubSystem* const pNet = CNetSubSystem::Get(); if (!m_pNet) { LOGNOTE("CMiniDexed::UpdateNetwork: m_pNet is nullptr, returning early");