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-07-04 19:37:20 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-07-04 19:37:20 +0300
commit243be4d5d2895dd650a0eab55d9932b5b60291bb (patch)
treec541b07ec4e5075f262911846db2032960b447d3 /src/Platform/Platform.cpp
parente00b988031ccea7cc58a847d5368c185706ca2dd (diff)
Don't raise driver error events on 6XD when in test mode
Diffstat (limited to 'src/Platform/Platform.cpp')
-rw-r--r--src/Platform/Platform.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp
index 54fd7916..c9bb41c7 100644
--- a/src/Platform/Platform.cpp
+++ b/src/Platform/Platform.cpp
@@ -1094,7 +1094,8 @@ void Platform::Spin() noexcept
{
StandardDriverStatus stat =
#if defined(DUET3_MB6XD)
- StandardDriverStatus((HasDriverError(nextDriveToPoll)) ? (uint32_t)1u << StandardDriverStatus::ExternDriverErrorBitPos : 0);
+ // Don't raise driver error events while we are being tested by ATE
+ StandardDriverStatus((!CanInterface::InTestMode() && HasDriverError(nextDriveToPoll)) ? (uint32_t)1u << StandardDriverStatus::ExternDriverErrorBitPos : 0);
#else
SmartDrivers::GetStatus(nextDriveToPoll, true, true);
#endif