Browse Source

Fix E stepper stays on bug

Fixes #16753
Scott Lahteine 4 years ago
parent
commit
15b6ad41bc
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      Marlin/src/module/stepper/indirection.h

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

@@ -872,7 +872,7 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
872 872
   #endif
873 873
 #endif
874 874
 #ifndef DISABLE_AXIS_E0
875
-  #if E_STEPPERS > 0 && HAS_E0_DISABLE
875
+  #if E_STEPPERS > 0 && HAS_E0_ENABLE
876 876
     #define DISABLE_AXIS_E0() DISABLE_STEPPER_E0()
877 877
   #else
878 878
     #define DISABLE_AXIS_E0() NOOP
@@ -887,7 +887,7 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
887 887
   #endif
888 888
 #endif
889 889
 #ifndef DISABLE_AXIS_E1
890
-  #if E_STEPPERS > 1 && HAS_E1_DISABLE
890
+  #if E_STEPPERS > 1 && HAS_E1_ENABLE
891 891
     #define DISABLE_AXIS_E1() DISABLE_STEPPER_E1()
892 892
   #else
893 893
     #define DISABLE_AXIS_E1() NOOP
@@ -902,7 +902,7 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
902 902
   #endif
903 903
 #endif
904 904
 #ifndef DISABLE_AXIS_E2
905
-  #if E_STEPPERS > 2 && HAS_E2_DISABLE
905
+  #if E_STEPPERS > 2 && HAS_E2_ENABLE
906 906
     #define DISABLE_AXIS_E2() DISABLE_STEPPER_E2()
907 907
   #else
908 908
     #define DISABLE_AXIS_E2() NOOP
@@ -917,7 +917,7 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
917 917
   #endif
918 918
 #endif
919 919
 #ifndef DISABLE_AXIS_E3
920
-  #if E_STEPPERS > 3 && HAS_E3_DISABLE
920
+  #if E_STEPPERS > 3 && HAS_E3_ENABLE
921 921
     #define DISABLE_AXIS_E3() DISABLE_STEPPER_E3()
922 922
   #else
923 923
     #define DISABLE_AXIS_E3() NOOP
@@ -932,7 +932,7 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
932 932
   #endif
933 933
 #endif
934 934
 #ifndef DISABLE_AXIS_E4
935
-  #if E_STEPPERS > 4 && HAS_E4_DISABLE
935
+  #if E_STEPPERS > 4 && HAS_E4_ENABLE
936 936
     #define DISABLE_AXIS_E4() DISABLE_STEPPER_E4()
937 937
   #else
938 938
     #define DISABLE_AXIS_E4() NOOP
@@ -947,7 +947,7 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
947 947
   #endif
948 948
 #endif
949 949
 #ifndef DISABLE_AXIS_E5
950
-  #if E_STEPPERS > 5 && HAS_E5_DISABLE
950
+  #if E_STEPPERS > 5 && HAS_E5_ENABLE
951 951
     #define DISABLE_AXIS_E5() DISABLE_STEPPER_E5()
952 952
   #else
953 953
     #define DISABLE_AXIS_E5() NOOP
@@ -962,7 +962,7 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
962 962
   #endif
963 963
 #endif
964 964
 #ifndef DISABLE_AXIS_E6
965
-  #if E_STEPPERS > 6 && HAS_E6_DISABLE
965
+  #if E_STEPPERS > 6 && HAS_E6_ENABLE
966 966
     #define DISABLE_AXIS_E6() DISABLE_STEPPER_E6()
967 967
   #else
968 968
     #define DISABLE_AXIS_E6() NOOP
@@ -977,7 +977,7 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
977 977
   #endif
978 978
 #endif
979 979
 #ifndef DISABLE_AXIS_E7
980
-  #if E_STEPPERS > 7 && HAS_E7_DISABLE
980
+  #if E_STEPPERS > 7 && HAS_E7_ENABLE
981 981
     #define DISABLE_AXIS_E7() DISABLE_STEPPER_E7()
982 982
   #else
983 983
     #define DISABLE_AXIS_E7() NOOP

Loading…
Cancel
Save