Private
Public Access
2
0

android-things: Peripheralmanager target build

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-12-23 15:50:56 +00:00
committed by Noel Eck
parent 4c7616fe91
commit 69fcd861a7
5 changed files with 31 additions and 14 deletions

View File

@@ -626,8 +626,10 @@ mraa_uart_data_available(mraa_uart_context dev, unsigned int millis)
fd_set readfds;
#if !defined(PERIPHERALMAN)
FD_ZERO(&readfds);
FD_SET(dev->fd, &readfds);
#endif
if (select(dev->fd + 1, &readfds, NULL, NULL, &timeout) > 0) {
return 1; // data is ready