From c0b76dd5cf6acb737780c87d5af4cf8e3a8fdba8 Mon Sep 17 00:00:00 2001 From: gudnimg Date: Sat, 27 Jan 2024 10:47:23 +0000 Subject: [PATCH] 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 --- Firmware/ultralcd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index ab01e8e9c..426ab3344 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -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