From 1eecaa3f9fab72a95af85b51de547d8bf0ea11c0 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 4 Dec 2023 16:00:00 +0900 Subject: [PATCH] AP_Torqeedo: error code reporting fix --- libraries/AP_Torqeedo/AP_Torqeedo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Torqeedo/AP_Torqeedo.cpp b/libraries/AP_Torqeedo/AP_Torqeedo.cpp index 84b0856595..d545240b73 100644 --- a/libraries/AP_Torqeedo/AP_Torqeedo.cpp +++ b/libraries/AP_Torqeedo/AP_Torqeedo.cpp @@ -350,7 +350,7 @@ void AP_Torqeedo::report_error_codes() if (_display_system_state.flags.temp_warning) { gcs().send_text(MAV_SEVERITY_CRITICAL, "%s high temp", msg_prefix); } - if (_display_system_state.flags.temp_warning) { + if (_display_system_state.flags.batt_nearly_empty) { gcs().send_text(MAV_SEVERITY_CRITICAL, "%s batt nearly empty", msg_prefix); } if (_display_system_state.master_error_code > 0) {