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>2019-12-14 00:08:22 +0300
committerDavid Crocker <dcrocker@eschertech.com>2019-12-14 00:08:22 +0300
commitc3913a51be149ce0f8451017aa15c894684d8e1f (patch)
tree04308e503bd2e7454c414de3de96c87eb90d0965
parent636ba17f29e58a7139a34aee911d08ca3ee34b25 (diff)
Fixed issue with >3 extruders on Duet 2
-rw-r--r--src/Platform.cpp4
-rw-r--r--src/Version.h2
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<void(uint8_t)> localFunc, std::function<void(DriverId)> 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<void(uint8_t)
// Function to identify and iterate through all drivers attached to an axis or extruder
void Platform::IterateDrivers(size_t axisOrExtruder, std::function<void(uint8_t)> 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"