diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-10-11 14:17:24 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-10-11 14:17:24 +0300 |
commit | 34aa44be5c903f5f5afbedd844be31b12f0cfa5b (patch) | |
tree | f61f0e4c7df176b6b030b7256b56cbab45d1dda0 | |
parent | 103237f0e61e2cac3d7bad69ac7f429aa3841040 (diff) |
SbcRequest::LockMovementAndWaitForStandstill now locks all systems
-rw-r--r-- | src/SBC/SbcInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SBC/SbcInterface.cpp b/src/SBC/SbcInterface.cpp index 766def66..592cb16b 100644 --- a/src/SBC/SbcInterface.cpp +++ b/src/SBC/SbcInterface.cpp @@ -443,7 +443,7 @@ void SbcInterface::ExchangeData() noexcept break; } - // Lock movement and wait for standstill + // Lock movement and wait for standstill. Currently this is used only by M505, so we lock all movement systems. case SbcRequest::LockMovementAndWaitForStandstill: { const GCodeChannel channel = transfer.ReadCodeChannel(); @@ -451,7 +451,7 @@ void SbcInterface::ExchangeData() noexcept { GCodeBuffer * const gb = reprap.GetGCodes().GetGCodeBuffer(channel); MutexLocker locker(gb->mutex, SbcYieldTimeout); - if (locker.IsAcquired() && reprap.GetGCodes().LockCurrentMovementSystemAndWaitForStandstill(*gb)) + if (locker.IsAcquired() && reprap.GetGCodes().LockAllMovementSystemsAndWaitForStandstill(*gb)) { transfer.WriteLocked(channel); } |