Private
Public Access
2
0

android-things: Prep for peripheralmanager support

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-12-23 15:29:25 +00:00
committed by Noel Eck
parent d7fb6c5af9
commit 4c7616fe91
25 changed files with 2501 additions and 9 deletions

View File

@@ -314,9 +314,11 @@ mraa_uart_flush(mraa_uart_context dev)
return dev->advance_func->uart_flush_replace(dev);
}
#if !defined(PERIPHERALMAN)
if (tcdrain(dev->fd) == -1) {
return MRAA_ERROR_FEATURE_NOT_SUPPORTED;
}
#endif
return MRAA_SUCCESS;
}