From 84791f4670b7fa7d30981a020260ca01b3e06c73 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) {