android-things: Peripheralmanager target build
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Noel Eck
parent
4c7616fe91
commit
69fcd861a7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user