@@ -349,7 +349,7 @@ void Mount::configureAZStepper(byte pin1, byte pin2, int maxSpeed, int maxAccele
349349 #ifdef NEW_STEPPER_LIB
350350 _stepperAZ = new StepperAzSlew (AccelStepper::DRIVER, pin1, pin2);
351351 #else
352- _stepperAZ = new AccelStepper (AccelStepper::DRIVER, pin1, pin2);
352+ _stepperAZ = new AccelStepper (AccelStepper::DRIVER, pin1, pin2);
353353 #endif
354354 _stepperAZ->setMaxSpeed (maxSpeed);
355355 _stepperAZ->setAcceleration (maxAcceleration);
@@ -367,7 +367,7 @@ void Mount::configureALTStepper(byte pin1, byte pin2, int maxSpeed, int maxAccel
367367 #ifdef NEW_STEPPER_LIB
368368 _stepperALT = new StepperAltSlew (AccelStepper::DRIVER, pin1, pin2);
369369 #else
370- _stepperALT = new AccelStepper (AccelStepper::DRIVER, pin1, pin2);
370+ _stepperALT = new AccelStepper (AccelStepper::DRIVER, pin1, pin2);
371371 #endif
372372 _stepperALT->setMaxSpeed (maxSpeed);
373373 _stepperALT->setAcceleration (maxAcceleration);
@@ -758,7 +758,7 @@ void Mount::configureALTdriver(uint16_t ALT_SW_RX, uint16_t ALT_SW_TX, float rse
758758 _driverALT->pdn_disable (true );
759759 #if UART_CONNECTION_TEST_TXRX == 1
760760 bool UART_Rx_connected = false ;
761- UART_Rx_connected = connectToDriver (" ALT" );
761+ UART_Rx_connected = connectToDriver (" ALT" );
762762 if (!UART_Rx_connected)
763763 {
764764 digitalWrite (ALT_EN_PIN,
@@ -849,7 +849,7 @@ void Mount::configureFocusDriver(
849849 _driverFocus->pdn_disable (true );
850850 #if UART_CONNECTION_TEST_TXRX == 1
851851 bool UART_Rx_connected = false ;
852- UART_Rx_connected = connectToDriver (" FOC" );
852+ UART_Rx_connected = connectToDriver (" FOC" );
853853 if (!UART_Rx_connected)
854854 {
855855 digitalWrite (FOCUS_EN_PIN,
@@ -1891,7 +1891,7 @@ void Mount::getAZALTPositions(long &azPos, long &altPos)
18911891#if (AZ_STEPPER_TYPE != STEPPER_TYPE_NONE)
18921892 azPos = _stepperAZ->currentPosition ();
18931893#else
1894- azPos = 0 ;
1894+ azPos = 0 ;
18951895#endif
18961896#if (ALT_STEPPER_TYPE != STEPPER_TYPE_NONE)
18971897 altPos = _stepperALT->currentPosition ();
@@ -2893,16 +2893,16 @@ void Mount::interruptLoop()
28932893 _stepperDEC->run ();
28942894 _stepperRA->run ();
28952895 }
2896- else if (!(_mountStatus & STATUS_TRACKING) && (_stepperTRK-> isRunning ()))
2897- {
2898- // If we are not tracking, but the tracking stepper is running, we need to let it move.
2899- // This can happen when we need to compensate for a slew (during which the tracker is
2900- // stopped). After the slew, the tracker is advanced by the distance it would have
2901- // travelled during the slew if it had been tracking.
2902- // That compensation uses goto mode (using runToNewPosition()), so we need to use run(),
2903- // since runSpeed() only advances the stepper when it is in constant speed mode.
2904- _stepperTRK-> run ();
2905- }
2896+ }
2897+ else if (!(_mountStatus & STATUS_TRACKING) && (_stepperTRK-> isRunning ()))
2898+ {
2899+ // If we are not tracking, but the tracking stepper is running, we need to let it move.
2900+ // This can happen when we need to compensate for a slew (during which the tracker is
2901+ // stopped). After the slew, the tracker is advanced by the distance it would have
2902+ // travelled during the slew if it had been tracking.
2903+ // That compensation uses goto mode (using runToNewPosition()), so we need to use run(),
2904+ // since runSpeed() only advances the stepper when it is in constant speed mode.
2905+ _stepperTRK-> run ();
29062906 }
29072907
29082908 if (_mountStatus & STATUS_FINDING_HOME)
0 commit comments