Skip to content

Commit

Permalink
Only perform the extra purge for user-requested unloads
Browse files Browse the repository at this point in the history
Swaps are triggered with a hot printer, and thus don't require to
perform an extra purge. This follows my own advice from PR prusa3d#3121.
  • Loading branch information
wavexx committed Jun 28, 2021
1 parent a5135af commit c2acb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6288,7 +6288,7 @@ void unload_filament(UnloadType unload)
lcd_setstatuspgm(_T(MSG_UNLOADING_FILAMENT));

raise_z_above(unload == UnloadType::Swap? MIN_Z_FOR_SWAP: MIN_Z_FOR_UNLOAD);
if (unload != UnloadType::Runout)
if (unload == UnloadType::User)
{
// extrude slowly
current_position[E_AXIS] += FILAMENTCHANGE_UNLOADFEED;
Expand Down

0 comments on commit c2acb94

Please sign in to comment.