From 6e4bd29eb22d9e7ee8a3678423c24a82191e438d Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 1 Jul 2024 18:35:30 +0200 Subject: [PATCH] Rover: fix failsafe reason reported --- Rover/failsafe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rover/failsafe.cpp b/Rover/failsafe.cpp index da877c2bb7482a..76aec3c27a1c58 100644 --- a/Rover/failsafe.cpp +++ b/Rover/failsafe.cpp @@ -84,17 +84,17 @@ void Rover::failsafe_trigger(uint8_t failsafe_type, const char* type_str, bool o case FailsafeAction::None: break; case FailsafeAction::SmartRTL: - if (set_mode(mode_smartrtl, ModeReason::BATTERY_FAILSAFE)) { + if (set_mode(mode_smartrtl, ModeReason::FAILSAFE)) { break; } FALLTHROUGH; case FailsafeAction::RTL: - if (set_mode(mode_rtl, ModeReason::BATTERY_FAILSAFE)) { + if (set_mode(mode_rtl, ModeReason::FAILSAFE)) { break; } FALLTHROUGH; case FailsafeAction::Hold: - set_mode(mode_hold, ModeReason::BATTERY_FAILSAFE); + set_mode(mode_hold, ModeReason::FAILSAFE); break; case FailsafeAction::SmartRTL_Hold: if (!set_mode(mode_smartrtl, ModeReason::FAILSAFE)) {