cleanup: move st_synchronize under the if statement

If the if statement is not true, then the st_synchronize call is not useful

The raise_z call above the if statement does not need it since it always calls st_synchronize (blocking move)

No change in memory
This commit is contained in:
gudnimg 2024-01-27 10:47:23 +00:00
parent 8fa97cffda
commit c0b76dd5cf
1 changed files with 1 additions and 1 deletions

View File

@ -5666,8 +5666,8 @@ void lcd_print_stop_finish()
current_position[X_AXIS] = X_CANCEL_POS;
current_position[Y_AXIS] = Y_CANCEL_POS;
plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
st_synchronize();
}
st_synchronize();
#ifdef COMMUNITY_PREVENT_OOZE
// Retract filament to prevent oozing