Browse Source

HAL_SITL: fixed segv on cygwin

mission-4.1.18
Andrew Tridgell 9 years ago
parent
commit
fc9283964a
  1. 3
      libraries/AP_HAL_SITL/UARTDriver.cpp

3
libraries/AP_HAL_SITL/UARTDriver.cpp

@ -367,6 +367,9 @@ void UARTDriver::_check_connection(void) @@ -367,6 +367,9 @@ void UARTDriver::_check_connection(void)
*/
bool UARTDriver::_select_check(int fd)
{
if (fd == -1) {
return false;
}
fd_set fds;
struct timeval tv;

Loading…
Cancel
Save