HAL_SITL: prevent abort on select with -1 fd

This commit is contained in:
Andrew Tridgell 2016-01-10 21:26:35 +11:00
parent 9bb251a3fa
commit 097c2011e1

View File

@ -385,6 +385,9 @@ void UARTDriver::_set_nonblocking(int fd)
void UARTDriver::_timer_tick(void)
{
if (!_connected) {
return;
}
uint32_t navail;
ssize_t nwritten;