[2.0.x] Fix change filament for delta machines (#9295)

This commit is contained in:
Thomas Moore
2018-01-22 10:21:42 -06:00
committed by Scott Lahteine
parent 62ecc74e76
commit 3db35ba9be
5 changed files with 31 additions and 12 deletions

View File

@ -41,7 +41,7 @@
* L[distance] - Extrude distance for insertion, for the specified extruder
*
*/
inline void GcodeSuite::M603() {
void GcodeSuite::M603() {
if (get_target_extruder_from_command()) return;

View File

@ -50,6 +50,11 @@
void GcodeSuite::M701() {
point_t park_point = NOZZLE_PARK_POINT;
#if ENABLED(NO_MOTION_BEFORE_HOMING)
// Only raise Z if the machine is homed
if (axis_unhomed_error()) park_point.z = 0;
#endif
if (get_target_extruder_from_command()) return;
// Z axis lift
@ -107,6 +112,11 @@ void GcodeSuite::M701() {
void GcodeSuite::M702() {
point_t park_point = NOZZLE_PARK_POINT;
#if ENABLED(NO_MOTION_BEFORE_HOMING)
// Only raise Z if the machine is homed
if (axis_unhomed_error()) park_point.z = 0;
#endif
if (get_target_extruder_from_command()) return;
// Z axis lift

View File

@ -633,17 +633,17 @@ void GcodeSuite::process_parsed_command() {
#endif
#if ENABLED(ADVANCED_PAUSE_FEATURE)
case 600: // M600: Pause for filament change
M600();
break;
case 600: M600(); break; // M600: Pause for Filament Change
case 603: M603(); break; // M603: Configure Filament Change
#endif // ADVANCED_PAUSE_FEATURE
#if ENABLED(DUAL_X_CARRIAGE) || ENABLED(DUAL_NOZZLE_DUPLICATION_MODE)
case 605: M605(); break; // M605: Set Dual X Carriage movement mode
#endif
#if ENABLED(MK2_MULTIPLEXER)
case 702: M702(); break; // M702: Unload all extruders
#if ENABLED(FILAMENT_LOAD_UNLOAD_GCODES)
case 701: M701(); break; // M701: Load Filament
case 702: M702(); break; // M702: Unload Filament
#endif
#if ENABLED(LIN_ADVANCE)