Skip to content

Commit b03820f

Browse files
Lint fixes
1 parent 842483e commit b03820f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/Mount.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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();
@@ -2896,10 +2896,10 @@ void Mount::interruptLoop()
28962896
else if (!(_mountStatus & STATUS_TRACKING) && (_stepperTRK->isRunning()))
28972897
{
28982898
// 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
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
29012901
// travelled during the slew if it had been tracking.
2902-
// That compensation uses goto mode (using runToNewPosition()), so we need to use run(),
2902+
// That compensation uses goto mode (using runToNewPosition()), so we need to use run(),
29032903
// since runSpeed() only advances the stepper when it is in constant speed mode.
29042904
_stepperTRK->run();
29052905
}

src/SSD1306_128x64_Display.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ class SDD1306OLED128x64 : public InfoDisplayRender
4242
const int _decSize = 43;
4343
const int _decScalePos = 115;
4444

45-
const int yMaxStatus = 63 - 11;
46-
const static int MAX_CONSOLE_LINES = 16; // Maximum number of lines of text to buffer in console mode
47-
const static int DISPLAY_CONSOLE_LINES = 6; // Number of lines to display in console mode
45+
const int yMaxStatus = 63 - 11;
46+
const static int MAX_CONSOLE_LINES = 16; // Maximum number of lines of text to buffer in console mode
47+
const static int DISPLAY_CONSOLE_LINES = 6; // Number of lines to display in console mode
4848

4949
SSD1306Wire *display;
5050
int _sizeMount;
@@ -108,7 +108,7 @@ class SDD1306OLED128x64 : public InfoDisplayRender
108108
display->setFont(Bitmap3x5);
109109
// Start 6 lines back from current line and display next 6 lines
110110
int indexStart = max(0, _curLine - DISPLAY_CONSOLE_LINES);
111-
int indexEnd = min(indexStart + DISPLAY_CONSOLE_LINES, MAX_CONSOLE_LINES);
111+
int indexEnd = min(indexStart + DISPLAY_CONSOLE_LINES, MAX_CONSOLE_LINES);
112112
for (int i = indexStart; i < indexEnd; i++)
113113
{
114114
if (_textList[i].length() != 0)

0 commit comments

Comments
 (0)