Skip to content

Commit

Permalink
Fix for validation check of TMC_SPI
Browse files Browse the repository at this point in the history
  • Loading branch information
hjd1964 committed Aug 11, 2021
1 parent e656682 commit c33f53f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/pinmaps/Validate.MaxESP3.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,20 @@
#endif

// MOTION CONTROL AXIS1/2 -----------------
#if AXIS1_DRIVER_STATUS != OFF
#if ASSIGNED_AUX1 != PIN_NOT_ASSIGNED
#error "Configuration (Config.h): AXIS1_DRIVER_STATUS enabled but Aux1 is already in use, choose one feature on Aux1"
#if AXIS1_DRIVER_STATUS != OFF || AXIS2_DRIVER_STATUS != OFF
#if ASSIGNED_AUX2 != PIN_NOT_ASSIGNED
#error "Configuration (Config.h): AXIS1_ and/or AXIS2_DRIVER_STATUS enabled but Aux2 is already in use, choose one feature on Aux2"
#else
#undef ASSIGNED_AUX1
#define ASSIGNED_AUX1 PIN_DEDICATED
#undef ASSIGNED_AUX2
#define ASSIGNED_AUX2 PIN_DEDICATED
// also undefine the focuser control EN pin since it is in use for other purposes
#if PINMAP == MaxESP3
#undef Axis4_EN
#define Axis4_EN OFF
#endif
#endif
#endif

#if AXIS2_DRIVER_STATUS != OFF
// dedicated pin, shared with AXIS1
#endif

// MOTION CONTROL FOCUSERS/ROTATOR --------
#if ROTATOR == ON && AXIS3_DRIVER_POWER_DOWN == ON
// no EN on Rotator, this is trapped automatically later
Expand Down

0 comments on commit c33f53f

Please sign in to comment.