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:
Diffstat (limited to 'src/Platform/Platform.cpp')
-rw-r--r--src/Platform/Platform.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp
index 0eb3bd59..ba00aab9 100644
--- a/src/Platform/Platform.cpp
+++ b/src/Platform/Platform.cpp
@@ -1186,17 +1186,22 @@ void Platform::Spin() noexcept
# if SUPPORT_REMOTE_COMMANDS
if (CanInterface::InExpansionMode())
{
- CanInterface::RaiseEvent(EventType::driver_stall, 0, nextDriveToPoll, "", va_list());
+ if (eventOnStallDrivers.Intersects(mask))
+ {
+ CanInterface::RaiseEvent(EventType::driver_stall, 0, nextDriveToPoll, "", va_list());
+ }
}
else
# endif
- if (eventOnStallDrivers.Intersects(mask))
- {
- Event::AddEvent(EventType::driver_stall, 0, CanInterface::GetCanAddress(), nextDriveToPoll, "");
- }
- else if (logOnStallDrivers.Intersects(mask))
{
- MessageF(WarningMessage, "Driver %u stalled at Z height %.2f\n", nextDriveToPoll, (double)reprap.GetMove().LiveCoordinate(Z_AXIS, reprap.GetCurrentTool()));
+ if (eventOnStallDrivers.Intersects(mask))
+ {
+ Event::AddEvent(EventType::driver_stall, 0, CanInterface::GetCanAddress(), nextDriveToPoll, "");
+ }
+ else if (logOnStallDrivers.Intersects(mask))
+ {
+ MessageF(WarningMessage, "Driver %u stalled at Z height %.2f\n", nextDriveToPoll, (double)reprap.GetMove().LiveCoordinate(Z_AXIS, reprap.GetCurrentTool()));
+ }
}
}
# endif