Browse Source

Reduce code in gcode_M84 (PR#2492)

`gcode_M84` only needs to call `finishAndDisableSteppers`, which calls
all the other functions.
Scott Lahteine 9 years ago
parent
commit
aac2b9aa9d
1 changed files with 0 additions and 5 deletions
  1. 0
    5
      Marlin/Marlin_main.cpp

+ 0
- 5
Marlin/Marlin_main.cpp View File

3731
   else {
3731
   else {
3732
     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])));
3732
     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])));
3733
     if (all_axis) {
3733
     if (all_axis) {
3734
-      st_synchronize();
3735
-      disable_e0();
3736
-      disable_e1();
3737
-      disable_e2();
3738
-      disable_e3();
3739
       finishAndDisableSteppers();
3734
       finishAndDisableSteppers();
3740
     }
3735
     }
3741
     else {
3736
     else {

Loading…
Cancel
Save