Skip to content

Commit

Permalink
If the limit switch status is unknown, try to update it
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Aug 10, 2024
1 parent a3b6cd8 commit 058db68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/dome/universal_ror.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ void UniversalROR::TimerHit()
if (!isConnected())
return;

// In case the limit switch status is unknown, try to sync them up from client.
if (m_FullClosedLimitSwitch == m_FullOpenLimitSwitch && m_Client && m_Client->isConnected())
{
m_Client->syncFullyOpenedState();
m_Client->syncFullyClosedState();
}

if (DomeMotionSP.getState() == IPS_BUSY)
{
// Roll off is opening
Expand Down

0 comments on commit 058db68

Please sign in to comment.