From aac2b9aa9ded1141cb30caa94b282a0281867afc Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 22 Jul 2015 13:48:03 -0700 Subject: [PATCH] Reduce code in gcode_M84 (PR#2492) `gcode_M84` only needs to call `finishAndDisableSteppers`, which calls all the other functions. --- Marlin/Marlin_main.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 082bd54654..3c7675b02d 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -3731,11 +3731,6 @@ inline void gcode_M18_M84() { else { bool all_axis = !((code_seen(axis_codes[X_AXIS])) || (code_seen(axis_codes[Y_AXIS])) || (code_seen(axis_codes[Z_AXIS]))|| (code_seen(axis_codes[E_AXIS]))); if (all_axis) { - st_synchronize(); - disable_e0(); - disable_e1(); - disable_e2(); - disable_e3(); finishAndDisableSteppers(); } else {