Browse Source

AP_GPS: correct format string warnings in SBF driver

mission-4.1.18
Peter Barker 6 years ago committed by Andrew Tridgell
parent
commit
46ad04aab7
  1. 4
      libraries/AP_GPS/AP_GPS_SBF.cpp

4
libraries/AP_GPS/AP_GPS_SBF.cpp

@ -371,8 +371,8 @@ void AP_GPS_SBF::broadcast_configuration_failure_reason(void) const
{ {
if (gps._auto_config != AP_GPS::GPS_AUTO_CONFIG_DISABLE && if (gps._auto_config != AP_GPS::GPS_AUTO_CONFIG_DISABLE &&
_init_blob_index < ARRAY_SIZE(_initialisation_blob)) { _init_blob_index < ARRAY_SIZE(_initialisation_blob)) {
gcs().send_text(MAV_SEVERITY_INFO, "GPS %d: SBF is not fully configured (%d/%d)", state.instance + 1, gcs().send_text(MAV_SEVERITY_INFO, "GPS %u: SBF is not fully configured (%u/%u)", state.instance + 1,
_init_blob_index, ARRAY_SIZE(_initialisation_blob)); _init_blob_index, (unsigned)ARRAY_SIZE(_initialisation_blob));
} }
} }

Loading…
Cancel
Save