diff --git a/libs/indibase/inditelescope.cpp b/libs/indibase/inditelescope.cpp index e8a2dcba07..ae074df2b7 100644 --- a/libs/indibase/inditelescope.cpp +++ b/libs/indibase/inditelescope.cpp @@ -2422,7 +2422,7 @@ void Telescope::processButton(const char *button_n, ISState state) void Telescope::processJoystick(const char *joystick_n, double mag, double angle) { - if (MotionControlModeTP[MOTION_CONTROL_JOYSTICK].getState() == ISS_ON && !strcmp(joystick_n, "MOTIONDIR")) + if (MotionControlModeTP[MOTION_CONTROL_MODE_JOYSTICK].getState() == ISS_ON && !strcmp(joystick_n, "MOTIONDIR")) { if ((TrackState == SCOPE_PARKING) || (TrackState == SCOPE_PARKED)) { @@ -2438,7 +2438,7 @@ void Telescope::processJoystick(const char *joystick_n, double mag, double angle void Telescope::processAxis(const char *axis_n, double value) { - if (MotionControlModeTP[MOTION_CONTROL_AXES].getState() == ISS_ON) + if (MotionControlModeTP[MOTION_CONTROL_MODE_AXES].getState() == ISS_ON) { if (!strcmp(axis_n, "MOTIONDIRNS") || !strcmp(axis_n, "MOTIONDIRWE")) { diff --git a/libs/indibase/inditelescope.h b/libs/indibase/inditelescope.h index 65c080de7d..7233f5a616 100644 --- a/libs/indibase/inditelescope.h +++ b/libs/indibase/inditelescope.h @@ -843,8 +843,6 @@ class Telescope : public DefaultDevice { MOTION_CONTROL_MODE_JOYSTICK, MOTION_CONTROL_MODE_AXES, - MOTION_CONTROL_JOYSTICK, - MOTION_CONTROL_AXES }; // Lock Joystick Axis to one direction only