Browse Source

🐛 Fix børken E_DUAL_STEPPER_DRIVERS (#23017)

ellensp 3 years ago
parent
commit
b619a71844

+ 1
- 1
Marlin/src/inc/Conditionals_post.h View File

@@ -1636,7 +1636,7 @@
1636 1636
     #define HAS_E0_MS_PINS 1
1637 1637
   #endif
1638 1638
 
1639
-  #if E_STEPPERS > 1
1639
+  #if E_STEPPERS > 1 || ENABLED(E_DUAL_STEPPER_DRIVERS)
1640 1640
     #if PIN_EXISTS(E1_ENABLE) || AXIS_IS_L64XX(E1) || (ENABLED(SOFTWARE_DRIVER_ENABLE) && AXIS_IS_TMC(E1))
1641 1641
       #define HAS_E1_ENABLE 1
1642 1642
     #endif

+ 1
- 1
Marlin/src/module/stepper.cpp View File

@@ -2744,7 +2744,7 @@ void Stepper::init() {
2744 2744
   #if E_STEPPERS && HAS_E0_STEP
2745 2745
     E_AXIS_INIT(0);
2746 2746
   #endif
2747
-  #if E_STEPPERS > 1 && HAS_E1_STEP
2747
+  #if (E_STEPPERS > 1 || ENABLED(E_DUAL_STEPPER_DRIVERS)) && HAS_E1_STEP
2748 2748
     E_AXIS_INIT(1);
2749 2749
   #endif
2750 2750
   #if E_STEPPERS > 2 && HAS_E2_STEP

+ 2
- 2
Marlin/src/module/stepper/indirection.h View File

@@ -751,14 +751,14 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
751 751
 #endif
752 752
 
753 753
 #ifndef ENABLE_STEPPER_E1
754
-  #if E_STEPPERS > 1 && HAS_E1_ENABLE
754
+  #if (E_STEPPERS > 1 || ENABLED(E_DUAL_STEPPER_DRIVERS)) && HAS_E1_ENABLE
755 755
     #define  ENABLE_STEPPER_E1() E1_ENABLE_WRITE( E_ENABLE_ON)
756 756
   #else
757 757
     #define  ENABLE_STEPPER_E1() NOOP
758 758
   #endif
759 759
 #endif
760 760
 #ifndef DISABLE_STEPPER_E1
761
-  #if E_STEPPERS > 1 && HAS_E1_ENABLE
761
+  #if (E_STEPPERS > 1 || ENABLED(E_DUAL_STEPPER_DRIVERS)) && HAS_E1_ENABLE
762 762
     #define DISABLE_STEPPER_E1() E1_ENABLE_WRITE(!E_ENABLE_ON)
763 763
   #else
764 764
     #define DISABLE_STEPPER_E1() NOOP

Loading…
Cancel
Save