diff --git a/drivers/telescope/telescope_simulator.cpp b/drivers/telescope/telescope_simulator.cpp index 629d608255..6fe3e26e4c 100644 --- a/drivers/telescope/telescope_simulator.cpp +++ b/drivers/telescope/telescope_simulator.cpp @@ -84,7 +84,7 @@ bool ScopeSim::initProperties() mountModelNP.fill(getDeviceName(), "MOUNT_MODEL", "Mount Model", "Simulation", IP_WO, 0, IPS_IDLE); - flipHourAngleNP[FLIP_HA].fill("FLIP_HA", "Hour Angle (deg)", "%g", -20, 20, 0.1, 0); + flipHourAngleNP[0].fill("FLIP_HA", "Hour Angle (deg)", "%g", -20, 20, 0.1, 0); flipHourAngleNP.fill(getDeviceName(), "FLIP_HA", "Flip Posn.", "Simulation", IP_WO, 0, IPS_IDLE); @@ -433,7 +433,7 @@ bool ScopeSim::ISNewNumber(const char *dev, const char *name, double values[], c flipHourAngleNP.update(values, names, n); flipHourAngleNP.setState(IPS_OK); flipHourAngleNP.apply(); - alignment.setFlipHourAngle(flipHourAngleNP[FLIP_HA].getValue()); + alignment.setFlipHourAngle(flipHourAngleNP[0].getValue()); return true; } #endif diff --git a/drivers/telescope/telescope_simulator.h b/drivers/telescope/telescope_simulator.h index a754219453..3eaeabd4f3 100644 --- a/drivers/telescope/telescope_simulator.h +++ b/drivers/telescope/telescope_simulator.h @@ -165,10 +165,6 @@ class ScopeSim : public INDI::Telescope, public INDI::GuiderInterface }; INDI::PropertyNumber flipHourAngleNP {1}; - enum - { - FLIP_HA - }; #endif