diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-09-22 15:42:35 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-09-22 15:42:35 +0300 |
commit | 9dfa321bda5aa5ea322d413cb9d7a8c2fb00e9e3 (patch) | |
tree | ee360bbd334d5ad28caca94815312d375f115c1b /src/GCodes/GCodes2.cpp | |
parent | 4305d369a74e74df115a1895c8955f05eb0b00fa (diff) |
Merged main and expansion board TMC22xx ands TMC51xx drivers
Also implemented M569.2 on expansion boards
Also release laser port when switching away from laser mode
Diffstat (limited to 'src/GCodes/GCodes2.cpp')
-rw-r--r-- | src/GCodes/GCodes2.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/GCodes/GCodes2.cpp b/src/GCodes/GCodes2.cpp index 6a0f02e8..59b14e66 100644 --- a/src/GCodes/GCodes2.cpp +++ b/src/GCodes/GCodes2.cpp @@ -2879,6 +2879,9 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx { return false; } +#if SUPPORT_LASER + platform.ReleaseLaserPin(); +#endif machineType = MachineType::fff; reprap.StateUpdated(); break; @@ -2928,6 +2931,9 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx // M453 may be repeated to set up multiple spindles, so only print the message on the initial switch if (machineType != MachineType::cnc) { +#if SUPPORT_LASER + platform.ReleaseLaserPin(); +#endif machineType = MachineType::cnc; // switch to CNC mode even if the spindle parameter is bad reprap.StateUpdated(); } |