GCS_MAVLink: correct format in short-write panic message
This commit is contained in:
parent
cbe73b91d5
commit
66d460c19b
@ -130,7 +130,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);
|
const size_t written = mavlink_comm_port[chan]->write(buf, len);
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
if (written < len) {
|
if (written < len) {
|
||||||
AP_HAL::panic("Short write on UART: %lu < %u", written, len);
|
AP_HAL::panic("Short write on UART: %lu < %u", (unsigned long)written, len);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
(void)written;
|
(void)written;
|
||||||
|
Loading…
Reference in New Issue
Block a user