|
@@ -421,15 +421,23 @@ void check_axes_activity() {
|
421
|
421
|
block_index = next_block_index(block_index);
|
422
|
422
|
}
|
423
|
423
|
}
|
424
|
|
- if (DISABLE_X && !axis_active[X_AXIS]) disable_x();
|
425
|
|
- if (DISABLE_Y && !axis_active[Y_AXIS]) disable_y();
|
426
|
|
- if (DISABLE_Z && !axis_active[Z_AXIS]) disable_z();
|
427
|
|
- if (DISABLE_E && !axis_active[E_AXIS]) {
|
428
|
|
- disable_e0();
|
429
|
|
- disable_e1();
|
430
|
|
- disable_e2();
|
431
|
|
- disable_e3();
|
432
|
|
- }
|
|
424
|
+ #if ENABLED(DISABLE_X)
|
|
425
|
+ if (!axis_active[X_AXIS]) disable_x();
|
|
426
|
+ #endif
|
|
427
|
+ #if ENABLED(DISABLE_Y)
|
|
428
|
+ if (!axis_active[Y_AXIS]) disable_y();
|
|
429
|
+ #endif
|
|
430
|
+ #if ENABLED(DISABLE_Z)
|
|
431
|
+ if (!axis_active[Z_AXIS]) disable_z();
|
|
432
|
+ #endif
|
|
433
|
+ #if ENABLED(DISABLE_E)
|
|
434
|
+ if (!axis_active[E_AXIS]) {
|
|
435
|
+ disable_e0();
|
|
436
|
+ disable_e1();
|
|
437
|
+ disable_e2();
|
|
438
|
+ disable_e3();
|
|
439
|
+ }
|
|
440
|
+ #endif
|
433
|
441
|
|
434
|
442
|
#if HAS_FAN
|
435
|
443
|
#ifdef FAN_KICKSTART_TIME
|