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-10 14:59:57 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-09-10 15:03:00 +0300
commitc098dd1b2c6db061c655f86b66c9e6d3676fd9a8 (patch)
tree27fcd30b7d5763bd08713ba1389bd445b07894ad /src/GCodes/GCodes3.cpp
parentae987375ceada66cb9bcccf3a8ee8347ae1e0c5b (diff)
ATE build: M997 no longer turns of EUT power unless target is main board
Also turn off EUT power when doing an emergency stop
Diffstat (limited to 'src/GCodes/GCodes3.cpp')
-rw-r--r--src/GCodes/GCodes3.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/GCodes/GCodes3.cpp b/src/GCodes/GCodes3.cpp
index 8a459a4f..528a77dc 100644
--- a/src/GCodes/GCodes3.cpp
+++ b/src/GCodes/GCodes3.cpp
@@ -42,6 +42,10 @@
# include <Wire.h>
#endif
+#ifdef DUET3_ATE
+# include <Duet3Ate.h>
+#endif
+
#include <cctype>
// Deal with G60
@@ -1129,6 +1133,7 @@ GCodeResult GCodes::UpdateFirmware(GCodeBuffer& gb, const StringRef &reply)
}
}
#endif
+
#if HAS_AUX_DEVICES && ALLOW_ARBITRARY_PANELDUE_PORT // Disabled until we allow PanelDue on another port
if (gb.Seen('A'))
{
@@ -1136,6 +1141,10 @@ GCodeResult GCodes::UpdateFirmware(GCodeBuffer& gb, const StringRef &reply)
}
#endif
+#ifdef DUET3_ATE
+ Duet3Ate::PowerOffEUT();
+#endif
+
reprap.GetHeat().SwitchOffAll(true); // turn all heaters off because the main loop may get suspended
DisableDrives(); // all motors off