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:
authorDavid Crocker <dcrocker@eschertech.com>2019-12-14 23:37:53 +0300
committerDavid Crocker <dcrocker@eschertech.com>2019-12-14 23:37:53 +0300
commite556f168ef61e239624ea33878936819e4134d5e (patch)
treeacfff39d3e787360b032b8ffd48cbd665b9d000b
parentee7d22870874f9c5e49d5458ba4d340e0dce1e2e (diff)
Fixed M574 when used to change the position of an existing switch endstop
-rw-r--r--src/Endstops/Endstop.h2
-rw-r--r--src/Endstops/EndstopsManager.cpp2
-rw-r--r--src/Version.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Endstops/Endstop.h b/src/Endstops/Endstop.h
index 56ab4ec1..91eef1dc 100644
--- a/src/Endstops/Endstop.h
+++ b/src/Endstops/Endstop.h
@@ -67,11 +67,11 @@ public:
unsigned int GetAxis() const { return axis; }
bool GetAtHighEnd() const { return atHighEnd; }
+ void SetAtHighEnd(bool b) { atHighEnd = b; }
protected:
Endstop(uint8_t axis, EndStopPosition pos);
- void SetAtHighEnd(bool b) { atHighEnd = b; }
private:
uint8_t axis; // which axis this endstop is on
diff --git a/src/Endstops/EndstopsManager.cpp b/src/Endstops/EndstopsManager.cpp
index 4143ccf6..a3925ba6 100644
--- a/src/Endstops/EndstopsManager.cpp
+++ b/src/Endstops/EndstopsManager.cpp
@@ -344,7 +344,7 @@ GCodeResult EndstopsManager::HandleM574(GCodeBuffer& gb, const StringRef& reply,
}
else
{
- // Nothing to do because there are no parameters we can change except the port number
+ axisEndstops[axis]->SetAtHighEnd(pos == EndStopPosition::highEndStop);
}
break;
diff --git a/src/Version.h b/src/Version.h
index 3cb9d716..70e0c420 100644
--- a/src/Version.h
+++ b/src/Version.h
@@ -20,7 +20,7 @@
#endif
#ifndef DATE
-# define DATE "2019-12-14b4"
+# define DATE "2019-12-14b5"
#endif
#define AUTHORS "reprappro, dc42, chrishamm, t3p3, dnewman, printm3d"