Browse Source

Fix stepper timing bug

Scott Lahteine 6 years ago
parent
commit
6572848d7f
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/module/stepper.h

+ 3
- 3
Marlin/src/module/stepper.h View File

109
 #endif
109
 #endif
110
 
110
 
111
 // Add time for each stepper
111
 // Add time for each stepper
112
-#ifdef HAS_X_STEP
112
+#if HAS_X_STEP
113
   #define ISR_START_X_STEPPER_CYCLES ISR_START_STEPPER_CYCLES
113
   #define ISR_START_X_STEPPER_CYCLES ISR_START_STEPPER_CYCLES
114
   #define ISR_X_STEPPER_CYCLES       ISR_STEPPER_CYCLES
114
   #define ISR_X_STEPPER_CYCLES       ISR_STEPPER_CYCLES
115
 #else
115
 #else
116
   #define ISR_START_X_STEPPER_CYCLES 0UL
116
   #define ISR_START_X_STEPPER_CYCLES 0UL
117
   #define ISR_X_STEPPER_CYCLES       0UL
117
   #define ISR_X_STEPPER_CYCLES       0UL
118
 #endif
118
 #endif
119
-#ifdef HAS_Y_STEP
119
+#if HAS_Y_STEP
120
   #define ISR_START_Y_STEPPER_CYCLES ISR_START_STEPPER_CYCLES
120
   #define ISR_START_Y_STEPPER_CYCLES ISR_START_STEPPER_CYCLES
121
   #define ISR_Y_STEPPER_CYCLES       ISR_STEPPER_CYCLES
121
   #define ISR_Y_STEPPER_CYCLES       ISR_STEPPER_CYCLES
122
 #else
122
 #else
123
   #define ISR_START_Y_STEPPER_CYCLES 0UL
123
   #define ISR_START_Y_STEPPER_CYCLES 0UL
124
   #define ISR_Y_STEPPER_CYCLES       0UL
124
   #define ISR_Y_STEPPER_CYCLES       0UL
125
 #endif
125
 #endif
126
-#ifdef HAS_Z_STEP
126
+#if HAS_Z_STEP
127
   #define ISR_START_Z_STEPPER_CYCLES ISR_START_STEPPER_CYCLES
127
   #define ISR_START_Z_STEPPER_CYCLES ISR_START_STEPPER_CYCLES
128
   #define ISR_Z_STEPPER_CYCLES       ISR_STEPPER_CYCLES
128
   #define ISR_Z_STEPPER_CYCLES       ISR_STEPPER_CYCLES
129
 #else
129
 #else

Loading…
Cancel
Save