|
@@ -260,13 +260,9 @@ void GcodeSuite::G28(const bool always_home_all) {
|
260
|
260
|
|
261
|
261
|
#else // NOT DELTA
|
262
|
262
|
|
263
|
|
- const bool homeX = always_home_all || parser.seen('X'),
|
264
|
|
- homeY = always_home_all || parser.seen('Y'),
|
265
|
|
- homeZ = always_home_all || parser.seen('Z'),
|
266
|
|
- home_all = (!homeX && !homeY && !homeZ) || (homeX && homeY && homeZ),
|
267
|
|
- doX = home_all || homeX,
|
268
|
|
- doY = home_all || homeY,
|
269
|
|
- doZ = home_all || homeZ;
|
|
263
|
+ const bool homeX = parser.seen('X'), homeY = parser.seen('Y'), homeZ = parser.seen('Z'),
|
|
264
|
+ home_all = always_home_all || (homeX == homeY && homeX == homeZ),
|
|
265
|
+ doX = home_all || homeX, doY = home_all || homeY, doZ = home_all || homeZ;
|
270
|
266
|
|
271
|
267
|
set_destination_from_current();
|
272
|
268
|
|