mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 10:38:28 -04:00
AP_GPS: resolve gcs::send_text compiler warning
This commit is contained in:
parent
767408ffe9
commit
64637dba8f
@ -340,8 +340,8 @@ AP_GPS_SBF::process_message(void)
|
||||
check_new_itow(temp.TOW, sbf_msg.length);
|
||||
RxState = temp.RxState;
|
||||
if ((RxError & RX_ERROR_MASK) != (temp.RxError & RX_ERROR_MASK)) {
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "GPS %d: SBF error changed (0x%08x/0x%08x)", state.instance + 1,
|
||||
RxError & RX_ERROR_MASK, temp.RxError & RX_ERROR_MASK);
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "GPS %u: SBF error changed (0x%08x/0x%08x)", (unsigned int)(state.instance + 1),
|
||||
(unsigned int)(RxError & RX_ERROR_MASK), (unsigned int)(temp.RxError & RX_ERROR_MASK));
|
||||
}
|
||||
RxError = temp.RxError;
|
||||
break;
|
||||
|
@ -1380,8 +1380,8 @@ void
|
||||
AP_GPS_UBLOX::broadcast_configuration_failure_reason(void) const {
|
||||
for (uint8_t i = 0; i < ARRAY_SIZE(reasons); i++) {
|
||||
if (_unconfigured_messages & (1 << i)) {
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "GPS %d: u-blox %s configuration 0x%02x",
|
||||
state.instance +1, reasons[i], _unconfigured_messages);
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "GPS %u: u-blox %s configuration 0x%02x",
|
||||
(unsigned int)(state.instance + 1), reasons[i], (unsigned int)_unconfigured_messages);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user