Skip to content

Commit

Permalink
Log fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ClutchplateDude committed Sep 26, 2024
1 parent 7e75578 commit fc9fd39
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Mount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ void Mount::configureAZStepper(byte pin1, byte pin2, int maxSpeed, int maxAccele
#ifdef NEW_STEPPER_LIB
_stepperAZ = new StepperAzSlew(AccelStepper::DRIVER, pin1, pin2);
#else
_stepperAZ = new AccelStepper(AccelStepper::DRIVER, pin1, pin2);
_stepperAZ = new AccelStepper(AccelStepper::DRIVER, pin1, pin2);
#endif
_stepperAZ->setMaxSpeed(maxSpeed);
_stepperAZ->setAcceleration(maxAcceleration);
Expand All @@ -375,7 +375,7 @@ void Mount::configureALTStepper(byte pin1, byte pin2, int maxSpeed, int maxAccel
#ifdef NEW_STEPPER_LIB
_stepperALT = new StepperAltSlew(AccelStepper::DRIVER, pin1, pin2);
#else
_stepperALT = new AccelStepper(AccelStepper::DRIVER, pin1, pin2);
_stepperALT = new AccelStepper(AccelStepper::DRIVER, pin1, pin2);
#endif
_stepperALT->setMaxSpeed(maxSpeed);
_stepperALT->setAcceleration(maxAcceleration);
Expand Down Expand Up @@ -733,7 +733,7 @@ void Mount::configureALTdriver(uint16_t ALT_SW_RX, uint16_t ALT_SW_TX, float rse
_driverALT->pdn_disable(true);
#if UART_CONNECTION_TEST_TXRX == 1
bool UART_Rx_connected = false;
UART_Rx_connected = connectToDriver(_driverALT, "ALT");
UART_Rx_connected = connectToDriver(_driverALT, "ALT");
if (!UART_Rx_connected)
{
digitalWrite(ALT_EN_PIN,
Expand Down Expand Up @@ -824,7 +824,7 @@ void Mount::configureFocusDriver(
_driverFocus->pdn_disable(true);
#if UART_CONNECTION_TEST_TXRX == 1
bool UART_Rx_connected = false;
UART_Rx_connected = connectToDriver(_driverFocus, "Focus");
UART_Rx_connected = connectToDriver(_driverFocus, "Focus");
if (!UART_Rx_connected)
{
digitalWrite(FOCUS_EN_PIN,
Expand Down Expand Up @@ -1585,7 +1585,9 @@ void Mount::stopGuiding(bool ra, bool dec)
/////////////////////////////////
void Mount::guidePulse(byte direction, int duration)
{
#if (DEBUG_LEVEL & (DEBUG_STEPPERS | DEBUG_GUIDE))
const char *directionName = "-NE-S---W";
#endif
LOG(DEBUG_STEPPERS | DEBUG_GUIDE, "[GUIDE]: guidePulse: > Guide Pulse %c for %dms", directionName[direction], duration);
if ((direction == NORTH) || (direction == SOUTH))
{
Expand Down Expand Up @@ -1834,7 +1836,7 @@ void Mount::getAZALTPositions(long &azPos, long &altPos)
#if (AZ_STEPPER_TYPE != STEPPER_TYPE_NONE)
azPos = _stepperAZ->currentPosition();
#else
azPos = 0;
azPos = 0;
#endif
#if (ALT_STEPPER_TYPE != STEPPER_TYPE_NONE)
altPos = _stepperALT->currentPosition();
Expand Down

0 comments on commit fc9fd39

Please sign in to comment.