Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel <manuel.coenen@gmail.com>2019-10-21 10:42:10 +0300
committerdc42 <dcrocker@eschertech.com>2019-10-21 10:42:10 +0300
commit85a33c7e5bdee16a83b0dc94150c9e7c443b9ed7 (patch)
tree74ff095772fec7abd4f59bcfcd1abe749a6a9965 /src/Endstops/EndstopsManager.cpp
parent25e05cf6dfd5315584cad9bf63ac2af66d9555d4 (diff)
Implement G38.x (2 <= x <= 5) (#324)
* Implement G38.x (2 <= x <= 5) * Improve code readability * Remove accidentally committed change to Endstop.h * Fix missing initialization and deduplicate code * Use GCodeResult::error instead of GCodeResult::badOrMissingParameter * Fix filename in comment, add description and revert changes in RepRapFirmware.h
Diffstat (limited to 'src/Endstops/EndstopsManager.cpp')
-rw-r--r--src/Endstops/EndstopsManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Endstops/EndstopsManager.cpp b/src/Endstops/EndstopsManager.cpp
index 3965c3bd..91205864 100644
--- a/src/Endstops/EndstopsManager.cpp
+++ b/src/Endstops/EndstopsManager.cpp
@@ -91,12 +91,13 @@ void EndstopsManager::EnableAxisEndstops(AxesBitmap axes, bool forHoming)
}
// Set up the active endstops for Z probing
-void EndstopsManager::EnableZProbe(size_t probeNumber)
+void EndstopsManager::EnableZProbe(size_t probeNumber, bool probingAway)
{
activeEndstops = nullptr;
isHomingMove = false;
if (probeNumber < MaxZProbes && zProbes[probeNumber] != nullptr)
{
+ zProbes[probeNumber]->SetProbingAway(probingAway);
AddToActive(*zProbes[probeNumber]);
}
}