AP_IOMCU: fix data type for available bytes

This commit is contained in:
Siddharth Purohit 2018-01-23 03:34:01 +05:30 committed by Andrew Tridgell
parent c613c0bde2
commit 0c914838b2

View File

@ -306,7 +306,7 @@ void AP_IOMCU::read_servo()
*/ */
void AP_IOMCU::discard_input(void) void AP_IOMCU::discard_input(void)
{ {
uint8_t n = uart.available(); uint32_t n = uart.available();
while (n--) { while (n--) {
uart.read(); uart.read();
} }