MAVLink: Do a better job at receive rate limiting

This commit is contained in:
Lorenz Meier
2015-11-03 00:02:53 +01:00
parent c20e7f8424
commit 8a6e9d17ba
3 changed files with 12 additions and 3 deletions

View File

@@ -698,6 +698,8 @@ int Mavlink::mavlink_open_uart(int baud, const char *uart_name, struct termios *
} else {
_is_usb_uart = true;
/* USB has no baudrate, but use a magic number for 'fast' */
_baudrate = 2000000;
}
#if defined (__PX4_LINUX) || defined (__PX4_DARWIN)