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-19 02:03:39 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-01-19 02:03:39 +0300
commitc812ce5e14cf476526d955edbce2effa9d922902 (patch)
treeda67dc55e46efdd38a0647318977a342da730345 /src/Endstops/Endstop.h
parente0bbf71357b07c22e6d43be3cca5c7422163be32 (diff)
Major refactoring, bug fixes in function evaluation
Changed all bitmaps to use the bitmap class from RRFLibraries Fixed bugs in functoin evaluation
Diffstat (limited to 'src/Endstops/Endstop.h')
-rw-r--r--src/Endstops/Endstop.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Endstops/Endstop.h b/src/Endstops/Endstop.h
index d4c8ee17..e0eb3a9e 100644
--- a/src/Endstops/Endstop.h
+++ b/src/Endstops/Endstop.h
@@ -31,7 +31,7 @@ public:
EndstopOrZProbe *GetNext() const noexcept { return next; }
void SetNext(EndstopOrZProbe *e) noexcept { next = e; }
- static void UpdateStalledDrivers(uint32_t driverMask, bool isStalled) noexcept;
+ static void UpdateStalledDrivers(DriversBitmap drivers, bool isStalled) noexcept;
protected:
static DriversBitmap GetStalledDrivers() noexcept { return stalledDrivers; }
@@ -42,15 +42,15 @@ private:
static DriversBitmap stalledDrivers; // used to track which drivers are reported as stalled, for stall detect endstops and stall detect Z probes
};
-inline void EndstopOrZProbe::UpdateStalledDrivers(uint32_t driverMask, bool isStalled) noexcept
+inline void EndstopOrZProbe::UpdateStalledDrivers(DriversBitmap drivers, bool isStalled) noexcept
{
if (isStalled)
{
- stalledDrivers |= driverMask;
+ stalledDrivers |= drivers;
}
else
{
- stalledDrivers &= ~driverMask;
+ stalledDrivers &= ~drivers;
}
}