From c3913a51be149ce0f8451017aa15c894684d8e1f Mon Sep 17 00:00:00 2001 From: David Crocker Date: Fri, 13 Dec 2019 21:08:22 +0000 Subject: Fixed issue with >3 extruders on Duet 2 --- src/Platform.cpp | 4 ++-- src/Version.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Platform.cpp b/src/Platform.cpp index c0ad9c56..77773272 100644 --- a/src/Platform.cpp +++ b/src/Platform.cpp @@ -2261,7 +2261,7 @@ bool Platform::WriteAxisLimits(FileStore *f, AxesBitmap axesProbed, const float // Function to identify and iterate through all drivers attached to an axis or extruder void Platform::IterateDrivers(size_t axisOrExtruder, std::function localFunc, std::function remoteFunc) noexcept { - if (axisOrExtruder < MaxAxes) + if (axisOrExtruder < reprap.GetGCodes().GetTotalAxes()) { for (size_t i = 0; i < axisDrivers[axisOrExtruder].numDrivers; ++i) { @@ -2295,7 +2295,7 @@ void Platform::IterateDrivers(size_t axisOrExtruder, std::function localFunc) noexcept { - if (axisOrExtruder < MaxAxes) + if (axisOrExtruder < reprap.GetGCodes().GetTotalAxes()) { for (size_t i = 0; i < axisDrivers[axisOrExtruder].numDrivers; ++i) { diff --git a/src/Version.h b/src/Version.h index 6d01c9d1..711177f1 100644 --- a/src/Version.h +++ b/src/Version.h @@ -20,7 +20,7 @@ #endif #ifndef DATE -# define DATE "2019-12-12b3" +# define DATE "2019-12-13b1" #endif #define AUTHORS "reprappro, dc42, chrishamm, t3p3, dnewman, printm3d" -- cgit v1.2.3