mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Fix Watchdog incorrectly resetting expiration flag upon disable (#1580)
Resetting the flag should only occur in Enable() and Reset(). IterativeRobotBase needs the flag to remain set to print epochs after disabling the Watchdog.
This commit is contained in:
committed by
Peter Johnson
parent
ae3fd5adac
commit
43696956d2
@@ -195,8 +195,6 @@ public class Watchdog implements Closeable, Comparable<Watchdog> {
|
||||
public void disable() {
|
||||
m_queueMutex.lock();
|
||||
try {
|
||||
m_isExpired = false;
|
||||
|
||||
m_watchdogs.remove(this);
|
||||
m_schedulerWaiter.signalAll();
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user