Browse Source

GCS_Mavlink: Correct format specifier in UART panic message

master
Rajat Singhal 6 years ago committed by Peter Barker
parent
commit
bc22aeb4da
  1. 2
      libraries/GCS_MAVLink/GCS_MAVLink.cpp

2
libraries/GCS_MAVLink/GCS_MAVLink.cpp

@ -148,7 +148,7 @@ void comm_send_buffer(mavlink_channel_t chan, const uint8_t *buf, uint8_t len) @@ -148,7 +148,7 @@ void comm_send_buffer(mavlink_channel_t chan, const uint8_t *buf, uint8_t len)
const size_t written = mavlink_comm_port[chan]->write(buf, len);
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
if (written < len) {
AP_HAL::panic("Short write on UART: %d < %u", written, len);
AP_HAL::panic("Short write on UART: %lu < %u", written, len);
}
#else
(void)written;

Loading…
Cancel
Save