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-01-04 21:15:22 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-01-04 21:15:22 +0300
commit5bd28a1aea25e83e6e1d7a0ca50cd000e7baf1a7 (patch)
tree059d11bfc384d80c7ff07d3457e994ac50a0c07e /src/Endstops/EndstopDefs.h
parent8ded9143fa9d07dcddd525683403980c42881f1a (diff)
Conditional GCode fixes and exception specifiers
Loops are now working Added noexcept specifiers to omst of the remaining C++ source files
Diffstat (limited to 'src/Endstops/EndstopDefs.h')
-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 51dd6c76..394f47b5 100644
--- a/src/Endstops/EndstopDefs.h
+++ b/src/Endstops/EndstopDefs.h
@@ -26,13 +26,13 @@ enum class EndstopHitAction : uint8_t
// Struct to return info about what endstop has been triggered and what to do about it
struct EndstopHitDetails
{
- EndstopHitDetails() : action((uint32_t)EndstopHitAction::none), internalUse(0), axis(NO_AXIS), setAxisLow(false), setAxisHigh(false), isZProbe(false)
+ EndstopHitDetails() noexcept : action((uint32_t)EndstopHitAction::none), internalUse(0), axis(NO_AXIS), setAxisLow(false), setAxisHigh(false), isZProbe(false)
{
driver.Clear();
}
- void SetAction(EndstopHitAction a) { action = (uint32_t)a; }
- EndstopHitAction GetAction() const { return (EndstopHitAction)action; }
+ 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()