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:
parent
4971fa73f9
commit
aac2b9aa9d
1 changed files with 0 additions and 5 deletions
|
@ -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 {
|
||||||
|
|
Reference in a new issue