Skip to content

Commit

Permalink
fix if conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
naheedsa committed Feb 11, 2024
1 parent bf36232 commit 48c728a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/telescope/telescope_simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ bool ScopeSim::ISNewSwitch(const char *dev, const char *name, ISState *states, c
#ifdef USE_SIM_TAB
if (mountTypeSP.isNameMatch(name))
{
if (mountTypeSP.update(states, names, n))
if (!mountTypeSP.update(states, names, n))
return false;

mountTypeSP.setState(IPS_OK);
Expand All @@ -458,7 +458,7 @@ bool ScopeSim::ISNewSwitch(const char *dev, const char *name, ISState *states, c
}
if (simPierSideSP.isNameMatch(name))
{
if (simPierSideSP.update(states, names, n))
if (!simPierSideSP.update(states, names, n))
return false;

simPierSideSP.setState(IPS_OK);
Expand Down

0 comments on commit 48c728a

Please sign in to comment.