Fix FAST_PWM_FAN / TouchUI with NO_MOTION_BEFORE_HOMING (#25005)

Fix regressions from #20323, #23463
This commit is contained in:
Marcio T
2022-11-21 16:25:56 -07:00
committed by Scott Lahteine
parent 968f04defb
commit 473d2b888a
2 changed files with 8 additions and 8 deletions

View File

@ -375,9 +375,9 @@ namespace ExtUI {
bool canMove(const axis_t axis) {
switch (axis) {
#if IS_KINEMATIC || ENABLED(NO_MOTION_BEFORE_HOMING)
case X: return axis_should_home(X_AXIS);
OPTCODE(HAS_Y_AXIS, case Y: return axis_should_home(Y_AXIS))
OPTCODE(HAS_Z_AXIS, case Z: return axis_should_home(Z_AXIS))
case X: return !axis_should_home(X_AXIS);
OPTCODE(HAS_Y_AXIS, case Y: return !axis_should_home(Y_AXIS))
OPTCODE(HAS_Z_AXIS, case Z: return !axis_should_home(Z_AXIS))
#else
case X: case Y: case Z: return true;
#endif