diff --git a/libraries/AP_Generator/AP_Generator_IE_2400.cpp b/libraries/AP_Generator/AP_Generator_IE_2400.cpp index 8a4e01eade..bfb90a4c4a 100644 --- a/libraries/AP_Generator/AP_Generator_IE_2400.cpp +++ b/libraries/AP_Generator/AP_Generator_IE_2400.cpp @@ -395,7 +395,7 @@ bool AP_Generator_IE_2400::is_low_error(const uint32_t err_in) const bool AP_Generator_IE_2400::check_for_err_code(char* msg_txt, uint8_t msg_len) const { if ((_version == ProtocolVersion::V2) && (strlen(_valid_V2.info_str) > 0)) { - hal.util->snprintf(msg_txt, msg_len, "Fuel cell err %s", _valid_V2.info_str); + hal.util->snprintf(msg_txt, msg_len, "Fuel cell err %u.%u: %s", (unsigned)_err_code, (unsigned)_sub_err_code, _valid_V2.info_str); return true; } diff --git a/libraries/AP_Generator/AP_Generator_IE_FuelCell.cpp b/libraries/AP_Generator/AP_Generator_IE_FuelCell.cpp index e25a382368..da7991a23f 100644 --- a/libraries/AP_Generator/AP_Generator_IE_FuelCell.cpp +++ b/libraries/AP_Generator/AP_Generator_IE_FuelCell.cpp @@ -168,7 +168,7 @@ void AP_Generator_IE_FuelCell::check_status(const uint32_t now) update_state_msg(); // Check error codes - char msg_txt[32]; + char msg_txt[64]; if (check_for_err_code_if_changed(msg_txt, sizeof(msg_txt))) { GCS_SEND_TEXT(MAV_SEVERITY_ALERT, "%s", msg_txt); }