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 14:37:16 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-09-13 14:37:16 +0300
commit6901180c481e181ff656b9c7dd3fe4a901fd31da (patch)
tree0c90fbeff3722f0a0f49fdd1317bbe8b687909b6
parent6d7e503670463924f44c7de2a65b9ba7271905ea (diff)
Fixed bug with main boards in expansion mode generating stall events
-rw-r--r--src/Platform/Platform.cpp19
-rw-r--r--src/Version.h2
2 files changed, 13 insertions, 8 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
diff --git a/src/Version.h b/src/Version.h
index c624f546..44a59909 100644
--- a/src/Version.h
+++ b/src/Version.h
@@ -10,7 +10,7 @@
#ifndef VERSION
// Note: the complete VERSION string must be in standard version number format and must not contain spaces! This is so that DWC can parse it.
-# define MAIN_VERSION "3.4.2rc3+1"
+# define MAIN_VERSION "3.4.2rc3+2"
# ifdef USE_CAN0
# define VERSION_SUFFIX "(CAN0)"
# else