Skip to content

Commit

Permalink
Only load from config when we have outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Jan 21, 2025
1 parent 27b0e9f commit a92f8d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/indibase/indioutputinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a92f8d6

Please sign in to comment.