@@ -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 ();
@@ -3249,15 +3249,15 @@ void Mount::updateInfoDisplay()
32493249{
32503250 #if (INFO_DISPLAY_TYPE != INFO_DISPLAY_TYPE_NONE)
32513251 // If we update this display too often while slewing, the serial port is unable to process commands fast enough. Which makes the driver
3252- // timeout, causing ASCOM errors.
3252+ // timeout, causing ASCOM errors.
32533253 // We will update at 30Hz when idle, 5Hz when slewing one axis and skip updates when slewing both.
3254- int refreshRateHz = 30 ;
3254+ int refreshRateHz = 30 ;
32553255 const bool isSlewingRAandDEC = (slewStatus () & (SLEWING_DEC | SLEWING_RA)) == (SLEWING_DEC | SLEWING_RA);
3256- if (isSlewingRAandDEC)
3256+ if (isSlewingRAandDEC)
32573257 {
32583258 return ; // Do not update the display
32593259 }
3260- else if (isSlewingRAorDEC ())
3260+ else if (isSlewingRAorDEC ())
32613261 {
32623262 refreshRateHz = 5 ; // Update the display slower
32633263 }
0 commit comments