AP_InertialSensor: fixed a build warning

This commit is contained in:
Andrew Tridgell 2013-05-23 22:41:16 +10:00
parent 967aa81e9b
commit 807dbf9786

View File

@ -39,7 +39,7 @@ void AP_InertialSensor_UserInteract_MAVLink::_printf_P(const prog_char* fmt, ...
// STATUSTEXT messages should not add linefeed // STATUSTEXT messages should not add linefeed
msg[strlen(msg)-1] = 0; msg[strlen(msg)-1] = 0;
} }
while (comm_get_txspace(_chan) - MAVLINK_NUM_NON_PAYLOAD_BYTES < sizeof(mavlink_statustext_t)) { while (comm_get_txspace(_chan) - MAVLINK_NUM_NON_PAYLOAD_BYTES < (int)sizeof(mavlink_statustext_t)) {
hal.scheduler->delay(1); hal.scheduler->delay(1);
} }
mavlink_msg_statustext_send(_chan, SEVERITY_USER_RESPONSE, msg); mavlink_msg_statustext_send(_chan, SEVERITY_USER_RESPONSE, msg);