Rover: use fence singleton in afs check

This commit is contained in:
Peter Barker 2022-10-21 12:25:53 +11:00 committed by Andrew Tridgell
parent 3400d5e4a5
commit 7456d8149f
1 changed files with 1 additions and 1 deletions

View File

@ -149,6 +149,6 @@ void Rover::handle_battery_failsafe(const char* type_str, const int8_t action)
void Rover::afs_fs_check(void)
{
// perform AFS failsafe checks
g2.afs.check(fence.get_breaches() != 0, failsafe.last_valid_rc_ms);
g2.afs.check(failsafe.last_valid_rc_ms);
}
#endif