Browse Source

Reduce code in gcode_M84 (PR#2492)

`gcode_M84` only needs to call `finishAndDisableSteppers`, which calls
all the other functions.
pull/1/head
Scott Lahteine 9 years ago
committed by Richard Wackerbarth
parent
commit
aac2b9aa9d
  1. 5
      Marlin/Marlin_main.cpp

5
Marlin/Marlin_main.cpp

@ -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 {

Loading…
Cancel
Save