mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -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)
|
void AP_IOMCU::discard_input(void)
|
||||||
{
|
{
|
||||||
uint8_t n = uart.available();
|
uint32_t n = uart.available();
|
||||||
while (n--) {
|
while (n--) {
|
||||||
uart.read();
|
uart.read();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user