@@ -291,36 +291,36 @@ void quickstop_stepper() {
291
291
}
292
292
293
293
void enable_e_steppers () {
294
- #define _ENA_E (N ) enable_E ##N();
294
+ #define _ENA_E (N ) ENABLE_AXIS_E ##N();
295
295
REPEAT (E_STEPPERS, _ENA_E)
296
296
}
297
297
298
298
void enable_all_steppers () {
299
299
#if ENABLED(AUTO_POWER_CONTROL)
300
300
powerManager.power_on ();
301
301
#endif
302
- enable_X ();
303
- enable_Y ();
304
- enable_Z ();
302
+ ENABLE_AXIS_X ();
303
+ ENABLE_AXIS_Y ();
304
+ ENABLE_AXIS_Z ();
305
305
enable_e_steppers ();
306
306
}
307
307
308
308
void disable_e_steppers () {
309
- #define _DIS_E (N ) disable_E ##N();
309
+ #define _DIS_E (N ) DISABLE_AXIS_E ##N();
310
310
REPEAT (E_STEPPERS, _DIS_E)
311
311
}
312
312
313
313
void disable_e_stepper (const uint8_t e) {
314
- #define _CASE_DIS_E (N ) case N: disable_E ##N(); break ;
314
+ #define _CASE_DIS_E (N ) case N: DISABLE_AXIS_E ##N(); break ;
315
315
switch (e) {
316
316
REPEAT (EXTRUDERS, _CASE_DIS_E)
317
317
}
318
318
}
319
319
320
320
void disable_all_steppers () {
321
- disable_X ();
322
- disable_Y ();
323
- disable_Z ();
321
+ DISABLE_AXIS_X ();
322
+ DISABLE_AXIS_Y ();
323
+ DISABLE_AXIS_Z ();
324
324
disable_e_steppers ();
325
325
}
326
326
@@ -461,13 +461,13 @@ void manage_inactivity(const bool ignore_stepper_queue/*=false*/) {
461
461
if (!already_shutdown_steppers) {
462
462
already_shutdown_steppers = true ; // L6470 SPI will consume 99% of free time without this
463
463
#if ENABLED(DISABLE_INACTIVE_X)
464
- disable_X ();
464
+ DISABLE_AXIS_X ();
465
465
#endif
466
466
#if ENABLED(DISABLE_INACTIVE_Y)
467
- disable_Y ();
467
+ DISABLE_AXIS_Y ();
468
468
#endif
469
469
#if ENABLED(DISABLE_INACTIVE_Z)
470
- disable_Z ();
470
+ DISABLE_AXIS_Z ();
471
471
#endif
472
472
#if ENABLED(DISABLE_INACTIVE_E)
473
473
disable_e_steppers ();
@@ -542,19 +542,19 @@ void manage_inactivity(const bool ignore_stepper_queue/*=false*/) {
542
542
#if ENABLED(SWITCHING_EXTRUDER)
543
543
bool oldstatus;
544
544
switch (active_extruder) {
545
- default : oldstatus = E0_ENABLE_READ (); enable_E0 (); break ;
545
+ default : oldstatus = E0_ENABLE_READ (); ENABLE_AXIS_E0 (); break ;
546
546
#if E_STEPPERS > 1
547
- case 2 : case 3 : oldstatus = E1_ENABLE_READ (); enable_E1 (); break ;
547
+ case 2 : case 3 : oldstatus = E1_ENABLE_READ (); ENABLE_AXIS_E1 (); break ;
548
548
#if E_STEPPERS > 2
549
- case 4 : case 5 : oldstatus = E2_ENABLE_READ (); enable_E2 (); break ;
549
+ case 4 : case 5 : oldstatus = E2_ENABLE_READ (); ENABLE_AXIS_E2 (); break ;
550
550
#endif // E_STEPPERS > 2
551
551
#endif // E_STEPPERS > 1
552
552
}
553
553
#else // !SWITCHING_EXTRUDER
554
554
bool oldstatus;
555
555
switch (active_extruder) {
556
556
default :
557
- #define _CASE_EN (N ) case N: oldstatus = E##N##_ENABLE_READ(); enable_E ##N(); break ;
557
+ #define _CASE_EN (N ) case N: oldstatus = E##N##_ENABLE_READ(); ENABLE_AXIS_E ##N(); break ;
558
558
REPEAT (E_STEPPERS, _CASE_EN);
559
559
}
560
560
#endif
0 commit comments