diff options
author | Manuel Coenen <manuel@duet3d.com> | 2021-02-18 12:14:56 +0300 |
---|---|---|
committer | Manuel Coenen <manuel@duet3d.com> | 2021-02-18 12:14:56 +0300 |
commit | a90e7367c0ebac2271955001080e10633982e67e (patch) | |
tree | 53fe5357d3f12540d7895d8bd23f282f3f16d638 /src/RepRap.cpp | |
parent | 5cadde27d3ae451f68846877e19bcd2a581faffe (diff) |
Un-deprecate G10 tool offset and temps
Ignore spindle RPM in G10, ignore tool offsets in M568
Replace spindles[].configured by another value of spindles[].state
Fix: M563 Rnnn did not accept -1 as value
Fix: providing an invalid/unconfigured spindle number to M563 was a
potential memory leak
Diffstat (limited to 'src/RepRap.cpp')
-rw-r--r-- | src/RepRap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RepRap.cpp b/src/RepRap.cpp index b234939e..7df3f371 100644 --- a/src/RepRap.cpp +++ b/src/RepRap.cpp @@ -1540,7 +1540,7 @@ OutputBuffer *RepRap::GetStatusResponse(uint8_t type, ResponseSource source) con if (gCodes->GetMachineType() == MachineType::cnc || type == 2) { size_t numSpindles = MaxSpindles; - while (numSpindles != 0 && !platform->AccessSpindle(numSpindles - 1).IsConfigured()) + while (numSpindles != 0 && platform->AccessSpindle(numSpindles - 1).GetState() == SpindleState::unconfigured) { --numSpindles; } |