mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Suppress timeout message in C++ MotorSafety class (#1512)
wpilibj's default constructor is already correct.
This commit is contained in:
committed by
Peter Johnson
parent
d817001259
commit
300eeb330d
@@ -16,6 +16,8 @@
|
||||
|
||||
using namespace frc;
|
||||
|
||||
MotorSafety::MotorSafety() { m_watchdog.SuppressTimeoutMessage(true); }
|
||||
|
||||
MotorSafety::MotorSafety(MotorSafety&& rhs)
|
||||
: ErrorBase(std::move(rhs)), m_enabled(std::move(rhs.m_enabled)) {
|
||||
m_watchdog = Watchdog(rhs.m_watchdog.GetTimeout(), [this] { TimeoutFunc(); });
|
||||
|
||||
Reference in New Issue
Block a user