Don't apply hotend_offset.z to Z soft endstops (#20675)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
zeleps
2021-01-05 07:48:42 +02:00
committed by Scott Lahteine
parent 01c9d49f09
commit d324f3b16a
4 changed files with 16 additions and 11 deletions

View File

@ -58,6 +58,11 @@ static void set_solenoid(const uint8_t num, const bool active) {
#endif
default: SERIAL_ECHO_MSG(STR_INVALID_SOLENOID); break;
}
#if ENABLED(PARKING_EXTRUDER)
if (!active && active_extruder == num) // If active extruder's solenoid is disabled, carriage is considered parked
parking_extruder_set_parked(true);
#endif
}
void enable_solenoid(const uint8_t num) { set_solenoid(num, true); }