Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-09-22 15:42:35 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-09-22 15:42:35 +0300
commit9dfa321bda5aa5ea322d413cb9d7a8c2fb00e9e3 (patch)
treeee360bbd334d5ad28caca94815312d375f115c1b /src/GCodes
parent4305d369a74e74df115a1895c8955f05eb0b00fa (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')
-rw-r--r--src/GCodes/GCodes2.cpp6
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();
}