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
path: root/src
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-02-28 23:17:17 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-02-28 23:17:17 +0300
commit3789fd70509b95244634a43c430e54fb3b83c4a0 (patch)
tree28873ffac41ba6524890e7b5ca7ea7e567343ddb /src
parentaeb483f9e02f03ae67c93f99603aea733de2cf08 (diff)
Removed incorrect driver 'pos' field from M122 report
Diffstat (limited to 'src')
-rw-r--r--src/Platform/Platform.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp
index 10089590..19ea4ebd 100644
--- a/src/Platform/Platform.cpp
+++ b/src/Platform/Platform.cpp
@@ -1783,13 +1783,12 @@ void Platform::Diagnostics(MessageType mtype) noexcept
for (size_t drive = 0; drive < NumDirectDrivers; ++drive)
{
String<StringLength256> driverStatus;
- driverStatus.printf("Driver %u: pos %" PRIi32, drive, reprap.GetMove().GetEndPoint(drive));
+ driverStatus.printf("Driver %u: ", drive);
#ifdef DUET3_MB6XD
- driverStatus.cat((HasDriverError(drive)) ? " error" : " ok");
+ driverStatus.cat((HasDriverError(drive)) ? "error" : "ok");
#elif HAS_SMART_DRIVERS
if (drive < numSmartDrivers)
{
- driverStatus.cat(", ");
const StandardDriverStatus status = SmartDrivers::GetStatus(drive);
status.AppendText(driverStatus.GetRef(), 0);
if (!status.notPresent)