HAL_SITL: fixed segv on cygwin

This commit is contained in:
Andrew Tridgell 2016-06-30 20:45:03 +10:00
parent d477905fbd
commit fc9283964a
1 changed files with 3 additions and 0 deletions

View File

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