Skip to content

Commit

Permalink
Do not define digital output labels unless we have members
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Jul 28, 2024
1 parent 3fffb79 commit ca644e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/indibase/indioutputinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ bool OutputInterface::updateProperties()
{
for (auto &oneOutput : DigitalOutputsSP)
m_defaultDevice->defineProperty(oneOutput);
m_defaultDevice->defineProperty(DigitalOutputLabelsTP);
if (DigitalOutputsSP.size() > 0)
m_defaultDevice->defineProperty(DigitalOutputLabelsTP);
}
else
{
for (auto &oneOutput : DigitalOutputsSP)
m_defaultDevice->deleteProperty(oneOutput);
m_defaultDevice->deleteProperty(DigitalOutputLabelsTP);
if (DigitalOutputsSP.size() > 0)
m_defaultDevice->deleteProperty(DigitalOutputLabelsTP);
}

return true;
Expand Down

0 comments on commit ca644e8

Please sign in to comment.