|
|
|
@ -71,7 +71,7 @@ void GcodeSuite::M701() {
|
|
|
|
|
// Change toolhead if specified
|
|
|
|
|
uint8_t active_extruder_before_filament_change = active_extruder;
|
|
|
|
|
if (active_extruder != target_extruder)
|
|
|
|
|
tool_change(target_extruder, 0, true);
|
|
|
|
|
tool_change(target_extruder, 0, false);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Lift Z axis
|
|
|
|
@ -96,7 +96,7 @@ void GcodeSuite::M701() {
|
|
|
|
|
#if EXTRUDERS > 1
|
|
|
|
|
// Restore toolhead if it was changed
|
|
|
|
|
if (active_extruder_before_filament_change != active_extruder)
|
|
|
|
|
tool_change(active_extruder_before_filament_change, 0, true);
|
|
|
|
|
tool_change(active_extruder_before_filament_change, 0, false);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Show status screen
|
|
|
|
@ -138,7 +138,7 @@ void GcodeSuite::M702() {
|
|
|
|
|
// Change toolhead if specified
|
|
|
|
|
uint8_t active_extruder_before_filament_change = active_extruder;
|
|
|
|
|
if (active_extruder != target_extruder)
|
|
|
|
|
tool_change(target_extruder, 0, true);
|
|
|
|
|
tool_change(target_extruder, 0, false);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Lift Z axis
|
|
|
|
@ -149,7 +149,7 @@ void GcodeSuite::M702() {
|
|
|
|
|
#if EXTRUDERS > 1 && ENABLED(FILAMENT_UNLOAD_ALL_EXTRUDERS)
|
|
|
|
|
if (!parser.seenval('T')) {
|
|
|
|
|
HOTEND_LOOP() {
|
|
|
|
|
if (e != active_extruder) tool_change(e, 0, true);
|
|
|
|
|
if (e != active_extruder) tool_change(e, 0, false);
|
|
|
|
|
unload_filament(-fc_settings[e].unload_length, true, ADVANCED_PAUSE_MODE_UNLOAD_FILAMENT);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -170,7 +170,7 @@ void GcodeSuite::M702() {
|
|
|
|
|
#if EXTRUDERS > 1
|
|
|
|
|
// Restore toolhead if it was changed
|
|
|
|
|
if (active_extruder_before_filament_change != active_extruder)
|
|
|
|
|
tool_change(active_extruder_before_filament_change, 0, true);
|
|
|
|
|
tool_change(active_extruder_before_filament_change, 0, false);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Show status screen
|
|
|
|
|