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>2021-03-13 14:18:49 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-03-13 14:18:49 +0300
commit8c2f5e1165750fb5fbb8b742e495c7711420ce1e (patch)
tree31c4871990753eb9786bae067f74cdd1bdcbfba0 /src/Endstops
parent76740e7ef7c32ded9c6e275ee602252bb25655b2 (diff)
Prepare to support >15 axes
Diffstat (limited to 'src/Endstops')
-rw-r--r--src/Endstops/EndstopDefs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Endstops/EndstopDefs.h b/src/Endstops/EndstopDefs.h
index 74835705..5c8aebde 100644
--- a/src/Endstops/EndstopDefs.h
+++ b/src/Endstops/EndstopDefs.h
@@ -34,9 +34,9 @@ struct EndstopHitDetails
void SetAction(EndstopHitAction a) noexcept { action = (uint32_t)a; }
EndstopHitAction GetAction() const noexcept { return (EndstopHitAction)action; }
- uint16_t action : 4, // an EndstopHitAction
- internalUse : 4, // used to pass data between CheckTriggered() and Acknowledge()
- axis : 4, // which axis to stop if the action is stopAxis, and which axis to set the position of if setAxisPos is true
+ uint16_t action : 2, // an EndstopHitAction
+ internalUse : 4, // used to pass the port index between CheckTriggered() and Acknowledge()
+ axis : 6, // which axis to stop if the action is stopAxis, and which axis to set the position of if setAxisLow or SetAxisHigh is true
setAxisLow : 1, // whether or not to set the axis position to its min
setAxisHigh : 1, // whether or not to set the axis position to its max
isZProbe : 1; // whether this is a Z probe