Navigation Menu

Skip to content

Commit

Permalink
Internal Filter wheel index is now 0-based
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Mar 4, 2019
1 parent 02d3964 commit e9fc04d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 3rdparty/indi-atik/atik_ccd.cpp
Expand Up @@ -948,7 +948,7 @@ void ATIKCCD::TimerHit()
{
if (moving == 0 && currentPos == targetPos)
{
SelectFilterDone(currentPos);
SelectFilterDone(currentPos + 1);
}
}

Expand Down Expand Up @@ -1267,7 +1267,7 @@ bool ATIKCCD::saveConfigItems(FILE *fp)

bool ATIKCCD::SelectFilter(int targetFilter)
{
int rc = ArtemisFilterWheelMove(hCam, targetFilter);
int rc = ArtemisFilterWheelMove(hCam, targetFilter - 1);
return (rc == ARTEMIS_OK);
}

Expand All @@ -1282,7 +1282,7 @@ int ATIKCCD::QueryFilter()
return -1;
}

return currentPos;
return currentPos + 1;
}

void ATIKCCD::debugTriggered(bool enable)
Expand Down

0 comments on commit e9fc04d

Please sign in to comment.