|
@ -210,7 +210,7 @@ |
|
|
* Z Home to the Z endstop |
|
|
* Z Home to the Z endstop |
|
|
* |
|
|
* |
|
|
*/ |
|
|
*/ |
|
|
void GcodeSuite::G28(const bool always_home_all) { |
|
|
void GcodeSuite::G28() { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
DEBUG_ECHOLNPGM(">>> G28"); |
|
|
DEBUG_ECHOLNPGM(">>> G28"); |
|
|
log_machine_info(); |
|
|
log_machine_info(); |
|
@ -311,7 +311,6 @@ void GcodeSuite::G28(const bool always_home_all) { |
|
|
#if ENABLED(DELTA) |
|
|
#if ENABLED(DELTA) |
|
|
|
|
|
|
|
|
home_delta(); |
|
|
home_delta(); |
|
|
UNUSED(always_home_all); |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(IMPROVE_HOMING_RELIABILITY) |
|
|
#if ENABLED(IMPROVE_HOMING_RELIABILITY) |
|
|
end_slow_homing(slow_homing); |
|
|
end_slow_homing(slow_homing); |
|
@ -320,7 +319,7 @@ void GcodeSuite::G28(const bool always_home_all) { |
|
|
#else // NOT DELTA
|
|
|
#else // NOT DELTA
|
|
|
|
|
|
|
|
|
const bool homeX = parser.seen('X'), homeY = parser.seen('Y'), homeZ = parser.seen('Z'), |
|
|
const bool homeX = parser.seen('X'), homeY = parser.seen('Y'), homeZ = parser.seen('Z'), |
|
|
home_all = always_home_all || (homeX == homeY && homeX == homeZ), |
|
|
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; |
|
|
|
|
|
|
|
|
destination = current_position; |
|
|
destination = current_position; |
|
|