diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-10-09 15:36:58 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-10-09 15:36:58 +0300 |
commit | 662240bf17caa22fbb208d36f9f1871e9370ac87 (patch) | |
tree | 38c7f2d09e051169f10644d90aa96f0dc82499a0 /src/GCodes | |
parent | 7e56302c1ade996d97874c5adfe07be2fe09c390 (diff) |
M17 now enables drivers even when RRF thinks they are already enabled
This was done to make it easier to tune expansion board drivers after
updating expansion board firmware.
Diffstat (limited to 'src/GCodes')
-rw-r--r-- | src/GCodes/GCodes2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GCodes/GCodes2.cpp b/src/GCodes/GCodes2.cpp index 0b5ed433..0017115e 100644 --- a/src/GCodes/GCodes2.cpp +++ b/src/GCodes/GCodes2.cpp @@ -660,7 +660,7 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx { if (code == 17) { - platform.EnableDrivers(axis); + platform.EnableDrivers(axis, true); } else { @@ -687,7 +687,7 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx } if (code == 17) { - platform.EnableDrivers(ExtruderToLogicalDrive(eDrive[i])); + platform.EnableDrivers(ExtruderToLogicalDrive(eDrive[i]), true); } else { @@ -718,11 +718,11 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx { for (size_t axis = 0; axis < numTotalAxes; ++axis) { - reprap.GetPlatform().EnableDrivers(axis); + reprap.GetPlatform().EnableDrivers(axis, true); } for (size_t extruder = 0; extruder < numExtruders; ++extruder) { - reprap.GetPlatform().EnableDrivers(ExtruderToLogicalDrive(extruder)); + reprap.GetPlatform().EnableDrivers(ExtruderToLogicalDrive(extruder), true); } } else |