From b53fa438aa319dc8cb971fae4e72c2e7d548e725 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 1 May 2025 15:13:22 +1000 Subject: [PATCH] AC_Autorotation: correct logging of reason into AROT it's a lot of trouble to go to to create a variable to then not use it! --- libraries/AC_Autorotation/AC_Autorotation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_Autorotation/AC_Autorotation.cpp b/libraries/AC_Autorotation/AC_Autorotation.cpp index 3493c09e006..ab150efb8c7 100644 --- a/libraries/AC_Autorotation/AC_Autorotation.cpp +++ b/libraries/AC_Autorotation/AC_Autorotation.cpp @@ -447,7 +447,7 @@ void AC_Autorotation::log_write_autorotation(void) const "F-", "QB", AP_HAL::micros64(), - _landed_reason); + reason); } #endif // HAL_LOGGING_ENABLED