AP_Torqeedo: error code reporting fix

This commit is contained in:
Randy Mackay 2023-09-11 20:35:23 +09:00 committed by Peter Barker
parent 768e2409df
commit 81cbca150b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {