diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-12-22 15:09:06 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-12-22 15:09:06 +0300 |
commit | 6cc85e4c66ba9f04773877aece0737cf5da4fb75 (patch) | |
tree | a3ae5fb70bc5a388bf30539a3f3b63509fa09d75 /src/Endstops/ZProbe.cpp | |
parent | f369106afee5b8990a9d0df81c95401929f8f01f (diff) |
Initialise ZProbe::lastStopHeight to zero
Diffstat (limited to 'src/Endstops/ZProbe.cpp')
-rw-r--r-- | src/Endstops/ZProbe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Endstops/ZProbe.cpp b/src/Endstops/ZProbe.cpp index e3e0bbd7..cbdc39e3 100644 --- a/src/Endstops/ZProbe.cpp +++ b/src/Endstops/ZProbe.cpp @@ -81,7 +81,7 @@ DEFINE_GET_OBJECT_MODEL_TABLE(ZProbe) #endif -ZProbe::ZProbe(unsigned int num, ZProbeType p_type) noexcept : EndstopOrZProbe(), number(num), isDeployedByUser(false) +ZProbe::ZProbe(unsigned int num, ZProbeType p_type) noexcept : EndstopOrZProbe(), number(num), lastStopHeight(0.0), isDeployedByUser(false) { SetDefaults(); type = p_type; |