Merge pull request #850 from PX4/mavlink_startup_cleanup

mavlink: Start the same in HIL mode as in normal mode. Requires all HIL ...
This commit is contained in:
Lorenz Meier
2014-04-22 09:57:56 +02:00
2 changed files with 26 additions and 29 deletions
+5
View File
@@ -574,6 +574,11 @@ int Mavlink::mavlink_open_uart(int baud, const char *uart_name, struct termios *
/* open uart */
_uart_fd = open(uart_name, O_RDWR | O_NOCTTY);
if (_uart_fd < 0) {
return _uart_fd;
}
/* Try to set baud rate */
struct termios uart_config;
int termios_state;