diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-07-04 19:37:20 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-07-04 19:37:20 +0300 |
commit | 243be4d5d2895dd650a0eab55d9932b5b60291bb (patch) | |
tree | c541b07ec4e5075f262911846db2032960b447d3 /src/Platform/Platform.cpp | |
parent | e00b988031ccea7cc58a847d5368c185706ca2dd (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.cpp | 3 |
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 |