mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-13 17:56:14 +00:00
Followup to #10177
This commit is contained in:
parent
157d28c418
commit
73fe8ef4df
1 changed files with 21 additions and 9 deletions
|
@ -6536,10 +6536,16 @@ inline void gcode_M17() {
|
||||||
|
|
||||||
// Fast Load Filament
|
// Fast Load Filament
|
||||||
if (fast_load_length) {
|
if (fast_load_length) {
|
||||||
float saved_acceleration = planner.retract_acceleration;
|
#if FILAMENT_CHANGE_FAST_LOAD_ACCEL > 0
|
||||||
|
const float saved_acceleration = planner.retract_acceleration;
|
||||||
planner.retract_acceleration = FILAMENT_CHANGE_FAST_LOAD_ACCEL;
|
planner.retract_acceleration = FILAMENT_CHANGE_FAST_LOAD_ACCEL;
|
||||||
|
#endif
|
||||||
|
|
||||||
do_pause_e_move(fast_load_length, FILAMENT_CHANGE_FAST_LOAD_FEEDRATE);
|
do_pause_e_move(fast_load_length, FILAMENT_CHANGE_FAST_LOAD_FEEDRATE);
|
||||||
|
|
||||||
|
#if FILAMENT_CHANGE_FAST_LOAD_ACCEL > 0
|
||||||
planner.retract_acceleration = saved_acceleration;
|
planner.retract_acceleration = saved_acceleration;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLED(ADVANCED_PAUSE_CONTINUOUS_PURGE)
|
#if ENABLED(ADVANCED_PAUSE_CONTINUOUS_PURGE)
|
||||||
|
@ -6632,10 +6638,16 @@ inline void gcode_M17() {
|
||||||
do_pause_e_move(FILAMENT_UNLOAD_RETRACT_LENGTH + FILAMENT_UNLOAD_PURGE_LENGTH, planner.max_feedrate_mm_s[E_AXIS]);
|
do_pause_e_move(FILAMENT_UNLOAD_RETRACT_LENGTH + FILAMENT_UNLOAD_PURGE_LENGTH, planner.max_feedrate_mm_s[E_AXIS]);
|
||||||
|
|
||||||
// Unload filament
|
// Unload filament
|
||||||
float saved_acceleration = planner.retract_acceleration;
|
#if FILAMENT_CHANGE_FAST_LOAD_ACCEL > 0
|
||||||
|
const float saved_acceleration = planner.retract_acceleration;
|
||||||
planner.retract_acceleration = FILAMENT_CHANGE_UNLOAD_ACCEL;
|
planner.retract_acceleration = FILAMENT_CHANGE_UNLOAD_ACCEL;
|
||||||
|
#endif
|
||||||
|
|
||||||
do_pause_e_move(unload_length, FILAMENT_CHANGE_UNLOAD_FEEDRATE);
|
do_pause_e_move(unload_length, FILAMENT_CHANGE_UNLOAD_FEEDRATE);
|
||||||
|
|
||||||
|
#if FILAMENT_CHANGE_FAST_LOAD_ACCEL > 0
|
||||||
planner.retract_acceleration = saved_acceleration;
|
planner.retract_acceleration = saved_acceleration;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Disable extruders steppers for manual filament changing (only on boards that have separate ENABLE_PINS)
|
// Disable extruders steppers for manual filament changing (only on boards that have separate ENABLE_PINS)
|
||||||
#if E0_ENABLE_PIN != X_ENABLE_PIN && E1_ENABLE_PIN != Y_ENABLE_PIN
|
#if E0_ENABLE_PIN != X_ENABLE_PIN && E1_ENABLE_PIN != Y_ENABLE_PIN
|
||||||
|
@ -6835,7 +6847,7 @@ inline void gcode_M17() {
|
||||||
thermalManager.reset_heater_idle_timer(e);
|
thermalManager.reset_heater_idle_timer(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (slow_load_length && (nozzle_timed_out || thermalManager.hotEnoughToExtrude(active_extruder))) {
|
if (nozzle_timed_out || thermalManager.hotEnoughToExtrude(active_extruder)) {
|
||||||
// Load the new filament
|
// Load the new filament
|
||||||
load_filament(slow_load_length, fast_load_length, purge_length, max_beep_count, true, nozzle_timed_out);
|
load_filament(slow_load_length, fast_load_length, purge_length, max_beep_count, true, nozzle_timed_out);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue