mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-05 07:28:29 -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);
|
check_new_itow(temp.TOW, sbf_msg.length);
|
||||||
RxState = temp.RxState;
|
RxState = temp.RxState;
|
||||||
if ((RxError & RX_ERROR_MASK) != (temp.RxError & RX_ERROR_MASK)) {
|
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,
|
gcs().send_text(MAV_SEVERITY_INFO, "GPS %u: SBF error changed (0x%08x/0x%08x)", (unsigned int)(state.instance + 1),
|
||||||
RxError & RX_ERROR_MASK, temp.RxError & RX_ERROR_MASK);
|
(unsigned int)(RxError & RX_ERROR_MASK), (unsigned int)(temp.RxError & RX_ERROR_MASK));
|
||||||
}
|
}
|
||||||
RxError = temp.RxError;
|
RxError = temp.RxError;
|
||||||
break;
|
break;
|
||||||
|
@ -1380,8 +1380,8 @@ void
|
|||||||
AP_GPS_UBLOX::broadcast_configuration_failure_reason(void) const {
|
AP_GPS_UBLOX::broadcast_configuration_failure_reason(void) const {
|
||||||
for (uint8_t i = 0; i < ARRAY_SIZE(reasons); i++) {
|
for (uint8_t i = 0; i < ARRAY_SIZE(reasons); i++) {
|
||||||
if (_unconfigured_messages & (1 << i)) {
|
if (_unconfigured_messages & (1 << i)) {
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "GPS %d: u-blox %s configuration 0x%02x",
|
gcs().send_text(MAV_SEVERITY_INFO, "GPS %u: u-blox %s configuration 0x%02x",
|
||||||
state.instance +1, reasons[i], _unconfigured_messages);
|
(unsigned int)(state.instance + 1), reasons[i], (unsigned int)_unconfigured_messages);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user