diff options
Diffstat (limited to 'src/Endstops/Endstop.h')
-rw-r--r-- | src/Endstops/Endstop.h | 8 |
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; } } |