Add option to disallow filament change without homing first

This commit is contained in:
Jim Brown
2017-06-14 22:06:34 -04:00
committed by Scott Lahteine
parent 93da4e83f7
commit 3d043976f7
26 changed files with 30 additions and 4 deletions

View File

@ -9265,10 +9265,10 @@ inline void gcode_M503() {
*/
inline void gcode_M600() {
// Don't allow filament change without homing first
if (axis_unhomed_error()) {
home_all_axes();
}
#if ENABLED(HOME_BEFORE_FILAMENT_CHANGE)
// Don't allow filament change without homing first
if (axis_unhomed_error()) home_all_axes();
#endif
// Initial retract before move to filament change position
const float retract = parser.seen('E') ? parser.value_axis_units(E_AXIS) : 0