Reduce code in gcode_M84 (PR#2492)

`gcode_M84` only needs to call `finishAndDisableSteppers`, which calls
all the other functions.
This commit is contained in:
Scott Lahteine 2015-07-22 13:48:03 -07:00 committed by Richard Wackerbarth
parent 4971fa73f9
commit aac2b9aa9d

View file

@ -3731,11 +3731,6 @@ inline void gcode_M18_M84() {
else { 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]))); 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) { if (all_axis) {
st_synchronize();
disable_e0();
disable_e1();
disable_e2();
disable_e3();
finishAndDisableSteppers(); finishAndDisableSteppers();
} }
else { else {