Don't allow filament change without homing first (#7054)
This commit is contained in:
parent
824f71d503
commit
26d20ebcfc
|
@ -9276,6 +9276,11 @@ inline void gcode_M503() {
|
||||||
*/
|
*/
|
||||||
inline void gcode_M600() {
|
inline void gcode_M600() {
|
||||||
|
|
||||||
|
// Don't allow filament change without homing first
|
||||||
|
if (axis_unhomed_error()) {
|
||||||
|
home_all_axes();
|
||||||
|
}
|
||||||
|
|
||||||
// Initial retract before move to filament change position
|
// Initial retract before move to filament change position
|
||||||
const float retract = parser.seen('E') ? parser.value_axis_units(E_AXIS) : 0
|
const float retract = parser.seen('E') ? parser.value_axis_units(E_AXIS) : 0
|
||||||
#if defined(PAUSE_PARK_RETRACT_LENGTH) && PAUSE_PARK_RETRACT_LENGTH > 0
|
#if defined(PAUSE_PARK_RETRACT_LENGTH) && PAUSE_PARK_RETRACT_LENGTH > 0
|
||||||
|
|
Loading…
Reference in a new issue