diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-03-03 17:52:44 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-03-03 17:52:44 +0300 |
commit | 348e9333931b622b7f1bd17e8a35db1afa499dc1 (patch) | |
tree | 08efc0d3e4848676cc4ac828e893e203d92b7081 /src/Movement | |
parent | 44cd81cab87892eed790d00cf2340471db21faa7 (diff) |
Fixed a compiler warning resulting from previous commit
Diffstat (limited to 'src/Movement')
-rw-r--r-- | src/Movement/DDA.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Movement/DDA.cpp b/src/Movement/DDA.cpp index fe8cc324..d40c1bb9 100644 --- a/src/Movement/DDA.cpp +++ b/src/Movement/DDA.cpp @@ -1767,7 +1767,9 @@ float DDA::NormaliseLinearMotion(AxesBitmap linearAxes) noexcept // Either this move is currently executing (DDARing.currentDDA == this) and the state is 'executing', or we have almost finished preparing it and the state is 'provisional'. void DDA::CheckEndstops(Platform& platform) noexcept { +#if SUPPORT_CAN_EXPANSION const bool fromPrepare = (state == DDAState::provisional); // determine this before anything sets the state to 'completed' +#endif for (;;) { |