AP_GPS: supply format string to send_text

This commit is contained in:
Peter Barker 2019-07-23 18:33:17 +10:00 committed by Peter Barker
parent 65c46ac322
commit 678c11f048
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ void AP_GPS_Backend::broadcast_gps_type() const
{
char buffer[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN+1];
_detection_message(buffer, sizeof(buffer));
gcs().send_text(MAV_SEVERITY_INFO, buffer);
gcs().send_text(MAV_SEVERITY_INFO, "%s", buffer);
}
void AP_GPS_Backend::Write_AP_Logger_Log_Startup_messages() const