From 81cbca150b5aa76e0a2747effd80702d197e822c Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 11 Sep 2023 20:35:23 +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 0ef063dde5..1fd14eded7 100644 --- a/libraries/AP_Torqeedo/AP_Torqeedo.cpp +++ b/libraries/AP_Torqeedo/AP_Torqeedo.cpp @@ -351,7 +351,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) {