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>2020-12-14 18:15:32 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-12-14 18:15:32 +0300
commit6bb82cf378ae3cada270c4d1933876e6544b3d66 (patch)
tree1f6fd0908c648349710112a1597498bbed660560 /src/Endstops/StallDetectionEndstop.h
parentc91cddf8642f196be5625b3db2e9eb4e15ff3ac2 (diff)
Reworked stall detection endstops and implemented them for TMC2209
Diffstat (limited to 'src/Endstops/StallDetectionEndstop.h')
-rw-r--r--src/Endstops/StallDetectionEndstop.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Endstops/StallDetectionEndstop.h b/src/Endstops/StallDetectionEndstop.h
index a51e4079..1f405f81 100644
--- a/src/Endstops/StallDetectionEndstop.h
+++ b/src/Endstops/StallDetectionEndstop.h
@@ -10,6 +10,8 @@
#include "Endstop.h"
+#if HAS_STALL_DETECT
+
// Motor stall detection endstop
class StallDetectionEndstop final : public Endstop
{
@@ -17,7 +19,7 @@ public:
void* operator new(size_t sz) noexcept { return FreelistManager::Allocate<StallDetectionEndstop>(); }
void operator delete(void* p) noexcept { FreelistManager::Release<StallDetectionEndstop>(p); }
- StallDetectionEndstop(uint8_t axis, EndStopPosition pos, bool p_individualMotors) noexcept; // for creating axis endstops
+ StallDetectionEndstop(uint8_t p_axis, EndStopPosition pos, bool p_individualMotors) noexcept; // for creating axis endstops
StallDetectionEndstop() noexcept; // for creating the single extruders endstop
EndStopType GetEndstopType() const noexcept override { return (individualMotors) ? EndStopType::motorStallIndividual : EndStopType::motorStallAny; }
@@ -35,4 +37,6 @@ private:
bool stopAll;
};
+#endif
+
#endif /* SRC_ENDSTOPS_STALLDETECTIONENDSTOP_H_ */