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>2022-09-13 17:32:08 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-09-13 17:32:08 +0300
commit3b5fe90f4ecc2527c7dcb7bbba35000d6ad789cf (patch)
treef54530472ec56b72e9e82fbd782fa2dab91c706b /src/Platform/Platform.cpp
parent6901180c481e181ff656b9c7dd3fe4a901fd31da (diff)
M915 in expansion mode now reports whether event-on-stall enabled, 3.4.23.4.2
Diffstat (limited to 'src/Platform/Platform.cpp')
-rw-r--r--src/Platform/Platform.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp
index ba00aab9..bbc1c0d9 100644
--- a/src/Platform/Platform.cpp
+++ b/src/Platform/Platform.cpp
@@ -5172,10 +5172,12 @@ GCodeResult Platform::EutProcessM915(const CanMessageGeneric& msg, const StringR
if (!seen)
{
- drivers.Iterate([&reply](unsigned int drive, unsigned int) noexcept
+ drivers.Iterate([&reply, this](unsigned int drive, unsigned int) noexcept
{
reply.lcatf("Driver %u.%u: ", CanInterface::GetCanAddress(), drive);
SmartDrivers::AppendStallConfig(drive, reply);
+ reply.cat(", event on stall: ");
+ reply.cat((eventOnStallDrivers.IsBitSet(drive)) ? "yes" : "no");
}
);
}