Skip to content

Commit

Permalink
Fix Motion Control Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
naheedsa committed Sep 23, 2024
1 parent abbbf18 commit 7858c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/indibase/inditelescope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1537,9 +1537,9 @@ bool Telescope::ISNewSwitch(const char *dev, const char *name, ISState *states,
MotionControlModeTP.update(states, names, n);
MotionControlModeTP.setState(IPS_OK);
MotionControlModeTP.apply();
if (MotionControlModeTP[MOTION_CONTROL_JOYSTICK].getState() == ISS_ON)
if (MotionControlModeTP[MOTION_CONTROL_MODE_JOYSTICK].getState() == ISS_ON)
LOG_INFO("Motion control is set to 4-way joystick.");
else if (MotionControlModeTP[MOTION_CONTROL_AXES].getState() == ISS_ON)
else if (MotionControlModeTP[MOTION_CONTROL_MODE_AXES].getState() == ISS_ON)
LOG_INFO("Motion control is set to 2 separate axes.");
else
DEBUGF(Logger::DBG_WARNING, "Motion control is set to unknown value %d!", n);
Expand Down

0 comments on commit 7858c25

Please sign in to comment.