From ab2df433646397bab7261c4035e11fe562554f40 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 3 Aug 2024 07:26:26 +1000 Subject: [PATCH] Copter: fixed issue with crash check define used in a multiplication, needs parantheses --- ArduCopter/crash_check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/crash_check.cpp b/ArduCopter/crash_check.cpp index a5a921f63e..b63e91f52b 100644 --- a/ArduCopter/crash_check.cpp +++ b/ArduCopter/crash_check.cpp @@ -3,7 +3,7 @@ // Code to detect a crash main ArduCopter code #if PARACHUTE == ENABLED // CRASH_CHECK_TRIGGER_SEC should be grater than CHUTE_TIMEOUT, to prevent disarming without deploying parachute - #define CRASH_CHECK_TRIGGER_SEC parachute.get_chute_timeout() + 1.0f + #define CRASH_CHECK_TRIGGER_SEC (parachute.get_chute_timeout() + 1.0) #else #define CRASH_CHECK_TRIGGER_SEC 2 // 2 seconds inverted indicates a crash #endif