FIX: small wipe tower width result in infinite loop

Change-Id: I1e25dba1728b9427a0cab2c2629c340bf2a4566a
(cherry picked from commit b1fc2f5857e05a177c00134178ddd39882c2a6ab)
This commit is contained in:
zhimin.zeng 2022-11-10 15:17:08 +08:00 committed by Lane.Wei
parent a801672963
commit da4be5a802
2 changed files with 4 additions and 1 deletions

View file

@ -1242,6 +1242,8 @@ void WipeTower::plan_toolchange(float z_par, float layer_height_par, unsigned in
// this is an actual toolchange - let's calculate depth to reserve on the wipe tower
float depth = 0.f;
float width = m_wipe_tower_width - 2 * m_perimeter_width;
if (width <= EPSILON)
return;
// BBS: remove old filament ramming and first line
#if 0