diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-01-14 00:24:45 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-01-14 00:24:45 +0300 |
commit | fe3da689f56b80d200d5e29056140103b7172b38 (patch) | |
tree | 074c6911ddeeac1dbd1a7fc1edccd87df2c98b9d /src/Movement/StraightProbeSettings.cpp | |
parent | 99eac2db23d8361c7c11b3253553cdfa948121c7 (diff) |
Fixes issue with an extra move being made when a print is cancelled
Also added more missing noexcept specifiers
Diffstat (limited to 'src/Movement/StraightProbeSettings.cpp')
-rw-r--r-- | src/Movement/StraightProbeSettings.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Movement/StraightProbeSettings.cpp b/src/Movement/StraightProbeSettings.cpp index 96ea014d..a1d90f64 100644 --- a/src/Movement/StraightProbeSettings.cpp +++ b/src/Movement/StraightProbeSettings.cpp @@ -8,11 +8,13 @@ #include "StraightProbeSettings.h" #include "RepRap.h" -StraightProbeSettings::StraightProbeSettings() { +StraightProbeSettings::StraightProbeSettings() noexcept +{ Reset(); } -void StraightProbeSettings::Reset() { +void StraightProbeSettings::Reset() noexcept +{ movingAxes = (AxesBitmap) 0; type = StraightProbeType::unset; for (size_t axis = 0; axis < MaxAxes; ++axis) @@ -21,14 +23,16 @@ void StraightProbeSettings::Reset() { } } -void StraightProbeSettings::SetTarget(const float coords[MaxAxes]) { +void StraightProbeSettings::SetTarget(const float coords[MaxAxes]) noexcept +{ for (size_t axis = 0; axis < MaxAxes; ++axis) { target[axis] = coords[axis]; } } -void StraightProbeSettings::SetCoordsToTarget(float coords[MaxAxes]) const { +void StraightProbeSettings::SetCoordsToTarget(float coords[MaxAxes]) const noexcept +{ for (size_t axis = 0; axis < MaxAxes; ++axis) { coords[axis] = target[axis]; |