parent
142e65192d
commit
5f9624f70b
|
@ -294,7 +294,10 @@ void GcodeSuite::G28() {
|
||||||
|
|
||||||
#else // NOT DELTA
|
#else // NOT DELTA
|
||||||
|
|
||||||
const bool homeX = parser.seen('X'), homeY = parser.seen('Y'), homeZ = parser.seen('Z'),
|
const bool homeZ = parser.seen('Z'),
|
||||||
|
needX = homeZ && TERN0(Z_SAFE_HOMING, axes_need_homing(_BV(X_AXIS))),
|
||||||
|
needY = homeZ && TERN0(Z_SAFE_HOMING, axes_need_homing(_BV(Y_AXIS))),
|
||||||
|
homeX = needX || parser.seen('X'), homeY = needY || parser.seen('Y'),
|
||||||
home_all = homeX == homeY && homeX == homeZ, // All or None
|
home_all = homeX == homeY && homeX == homeZ, // All or None
|
||||||
doX = home_all || homeX, doY = home_all || homeY, doZ = home_all || homeZ;
|
doX = home_all || homeX, doY = home_all || homeY, doZ = home_all || homeZ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue