diff options
Diffstat (limited to 'src/CAN/CommandProcessor.cpp')
-rw-r--r-- | src/CAN/CommandProcessor.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/CAN/CommandProcessor.cpp b/src/CAN/CommandProcessor.cpp index a430d366..545cc677 100644 --- a/src/CAN/CommandProcessor.cpp +++ b/src/CAN/CommandProcessor.cpp @@ -353,14 +353,17 @@ static GCodeResult EutGetInfo(const CanMessageReturnInfo& msg, const StringRef& extra = LastDiagnosticsPart; { const size_t driver = msg.type - (CanMessageReturnInfo::typeDiagnosticsPart0 + 1); - reply.lcatf("Driver %u: position %" PRIi32 ", %.1f steps/mm" + if (driver < NumDirectDrivers) // we have up to 7 drivers on the Duet 3 Mini but only 6 on the 6HC and 6XD + { + reply.lcatf("Driver %u: position %" PRIi32 ", %.1f steps/mm" #if HAS_SMART_DRIVERS - "," + "," #endif - , driver, reprap.GetMove().GetEndPoint(driver), (double)reprap.GetPlatform().DriveStepsPerUnit(driver)); + , driver, reprap.GetMove().GetEndPoint(driver), (double)reprap.GetPlatform().DriveStepsPerUnit(driver)); #if HAS_SMART_DRIVERS - SmartDrivers::AppendDriverStatus(driver, reply); + SmartDrivers::AppendDriverStatus(driver, reply); #endif + } } break; |