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-10-15 14:12:33 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-15 14:12:33 +0300
commit45dbb8823522e0fc95f3e3a9d8ef00a70ee4cd3d (patch)
tree8c134724704039d565e62cbe1558cfc48858b475 /src/Platform
parent00a128178d89cc0fc068e90d369509f0a57ad890 (diff)
Revert "Set and leave Z_PROBE_MOD pin low during startup on Duet Maestro"
This reverts commit 00a128178d89cc0fc068e90d369509f0a57ad890.
Diffstat (limited to 'src/Platform')
-rw-r--r--src/Platform/RepRap.cpp4
-rw-r--r--src/Platform/Tasks.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/Platform/RepRap.cpp b/src/Platform/RepRap.cpp
index 01c3c138..188635ff 100644
--- a/src/Platform/RepRap.cpp
+++ b/src/Platform/RepRap.cpp
@@ -2909,9 +2909,7 @@ void RepRap::StartIap(const char *filename) noexcept
}
#endif
-#if defined(DUET_M)
- // Leave the Diag LED (aka Z_PROBE_MOD) low, otherwise an attached BLTouch gets confused during its startup sequence
-#elif defined(DUET_NG)
+#if defined(DUET_NG) || defined(DUET_M)
IoPort::WriteDigital(DiagPin, !DiagOnPolarity); // turn the DIAG LED off
#endif
diff --git a/src/Platform/Tasks.cpp b/src/Platform/Tasks.cpp
index e005f775..6cd12a2d 100644
--- a/src/Platform/Tasks.cpp
+++ b/src/Platform/Tasks.cpp
@@ -130,8 +130,6 @@ void *Tasks::GetNVMBuffer(const uint32_t *stk) noexcept
// Application entry point
[[noreturn]] void AppMain() noexcept
{
- // Note: on the Duet Maestro the Z_PROB_MOD pin is shared with the Diag pin and often use to control a BLTouch.
- // Setting it low here and keeping it low avoids confusing the BLTouch during its startup sequence.
pinMode(DiagPin, (DiagOnPolarity) ? OUTPUT_LOW : OUTPUT_HIGH); // set up status LED for debugging and turn it off
#ifdef DUET3MINI
pinMode(ActLedPin, (ActOnPolarity) ? OUTPUT_LOW : OUTPUT_HIGH); // set up activity LED and turn it off