Skip to content

Commit dc12848

Browse files
committed
estop_latch: make watchdog behavior match documentation
1 parent 471643e commit dc12848

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/hal/components/estop_latch.comp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ FUNCTION(_) {
2121
ok_out = 1;
2222
fault_out = 0;
2323
}
24-
/* toggle watchdog */
25-
watchdog = !watchdog;
24+
if( ok_out ) {
25+
/* toggle watchdog */
26+
watchdog = !watchdog;
27+
}
2628
} else {
2729
/* fault condition exists, trip */
2830
ok_out = 0;

0 commit comments

Comments
 (0)