From a92f8d6a8e2a55c7b5709344f47c3a3ee85eb409 Mon Sep 17 00:00:00 2001 From: Jasem Mutlaq Date: Tue, 21 Jan 2025 19:16:31 +0300 Subject: [PATCH] Only load from config when we have outputs --- libs/indibase/indioutputinterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/indibase/indioutputinterface.cpp b/libs/indibase/indioutputinterface.cpp index 00aff813d2..1e08f44854 100644 --- a/libs/indibase/indioutputinterface.cpp +++ b/libs/indibase/indioutputinterface.cpp @@ -60,7 +60,8 @@ void OutputInterface::initProperties(const char *groupName, uint8_t Outputs, con DigitalOutputLabelsTP.fill(m_defaultDevice->getDeviceName(), "DIGITAL_OUTPUT_LABELS", "Labels", groupName, IP_RW, 60, IPS_IDLE); DigitalOutputLabelsTP.shrink_to_fit(); - DigitalOutputLabelsTP.load(); + if (Outputs > 0) + DigitalOutputLabelsTP.load(); DigitalOutputsSP.reserve(Outputs); // Initialize switches, use labels if loaded.