Skip to content

Commit

Permalink
Fix .update issues
Browse files Browse the repository at this point in the history
  • Loading branch information
naheedsa committed May 20, 2024
1 parent 30e6f1a commit 512bf86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions indi-maxdomeii/maxdomeii.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ bool MaxDomeII::ISNewNumber(const char *dev, const char *name, double values[],
double nVal;
char cLog[255];

if (HomeAzimuthNP.update(values, names, n) < 0)
if (HomeAzimuthNP.update(values, names, n) == false)
return false;

nVal = values[0];
Expand Down Expand Up @@ -696,7 +696,7 @@ bool MaxDomeII::ISNewNumber(const char *dev, const char *name, double values[],
double nVal;
IPState error;

if (ShutterOperationAzimuthNP.update(values, names, n) < 0)
if (ShutterOperationAzimuthNP.update(values, names, n) == false)
return false;

nVal = values[0];
Expand Down Expand Up @@ -748,7 +748,7 @@ bool MaxDomeII::ISNewSwitch(const char *dev, const char *name, ISState *states,
// ===================================
if (HomeSP.isNameMatch(name))
{
if (HomeSP.update(states, names, n) < 0)
if (HomeSP.update(states, names, n) == false)
return false;

int error;
Expand Down Expand Up @@ -780,7 +780,7 @@ bool MaxDomeII::ISNewSwitch(const char *dev, const char *name, ISState *states,
// ===================================
if (ShutterConflictSP.isNameMatch(name))
{
if (ShutterConflictSP.update(states, names, n) < 0)
if (ShutterConflictSP.update(states, names, n) == false)
return false;

int nCSBP = ShutterConflictSP[MOVE].getState() == ISS_ON ? 1 : 0;
Expand All @@ -803,7 +803,7 @@ bool MaxDomeII::ISNewSwitch(const char *dev, const char *name, ISState *states,

if (ShutterModeSP.isNameMatch(name))
{
if (ShutterModeSP.update(states, names, n) < 0)
if (ShutterModeSP.update(states, names, n) == false)
return false;

ShutterModeSP.setState(IPS_OK);
Expand Down

0 comments on commit 512bf86

Please sign in to comment.