From 9dfa321bda5aa5ea322d413cb9d7a8c2fb00e9e3 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Wed, 22 Sep 2021 13:42:35 +0100 Subject: 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 --- src/GCodes/GCodes2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/GCodes') 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(); } -- cgit v1.2.3