Suppress timeout message in C++ MotorSafety class (#1512)

wpilibj's default constructor is already correct.
This commit is contained in:
Tyler Veness
2018-12-27 12:01:02 -08:00
committed by Peter Johnson
parent d817001259
commit 300eeb330d
2 changed files with 3 additions and 1 deletions

View File

@@ -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(); });