From 7456d8149f2abb9064ba49faed9b9e5b8594b77e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 21 Oct 2022 12:25:53 +1100 Subject: [PATCH] Rover: use fence singleton in afs check --- Rover/failsafe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rover/failsafe.cpp b/Rover/failsafe.cpp index 68a2f3ca0c..e4d91e95d9 100644 --- a/Rover/failsafe.cpp +++ b/Rover/failsafe.cpp @@ -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