Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,7 @@ static void tick_handler(void) {

}

// exit controls allowed if unused by openpilot for a few seconds
if (controls_allowed && !heartbeat_engaged) {
heartbeat_engaged_mismatches += 1U;
if (heartbeat_engaged_mismatches >= 3U) {
controls_allowed = false;
}
} else {
heartbeat_engaged_mismatches = 0U;
}
safety_watchdog_reset();

if (!heartbeat_disabled) {
// if the heartbeat has been gone for a while, go to SILENT safety mode and enter power save
Expand Down
Loading