mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
AP_IOMCU: fix data type for available bytes
This commit is contained in:
parent
c613c0bde2
commit
0c914838b2
@ -306,7 +306,7 @@ void AP_IOMCU::read_servo()
|
||||
*/
|
||||
void AP_IOMCU::discard_input(void)
|
||||
{
|
||||
uint8_t n = uart.available();
|
||||
uint32_t n = uart.available();
|
||||
while (n--) {
|
||||
uart.read();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user