Browse Source

simulator: remove doubled tcgetattr call

sbg
Julian Oes 6 years ago
parent
commit
564cae86b5
  1. 3
      src/modules/simulator/simulator_mavlink.cpp

3
src/modules/simulator/simulator_mavlink.cpp

@ -901,9 +901,6 @@ int openUart(const char *uart_name, int baud) @@ -901,9 +901,6 @@ int openUart(const char *uart_name, int baud)
return -1;
}
/* Fill the struct for the new configuration */
tcgetattr(uart_fd, &uart_config);
/* Set baud rate */
if (cfsetispeed(&uart_config, speed) < 0 || cfsetospeed(&uart_config, speed) < 0) {
PX4_ERR("cfsetispeed or cfsetospeed failed for %s: %s\n", uart_name, strerror(errno));

Loading…
Cancel
Save