AP_Generator: correct compilation if GCS_SEND_TEXT not available

This commit is contained in:
Peter Barker 2024-01-04 11:58:42 +11:00 committed by Peter Barker
parent c557e67aff
commit 82fe13bc00
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ void AP_Generator_IE_2400::assign_measurements(const uint32_t now)
// If received 20 valid packets for a single protocol version then lock on
if (_last_version_packet_count > 20) {
_version = new_version;
gcs().send_text(MAV_SEVERITY_INFO, "Generator: IE using %s protocol", (_version == ProtocolVersion::V2) ? "V2" : "legacy" );
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Generator: IE using %s protocol", (_version == ProtocolVersion::V2) ? "V2" : "legacy" );
} else {
// Don't record any data during version detection