android-things: Prep for peripheralmanager support
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Noel Eck
parent
d7fb6c5af9
commit
4c7616fe91
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user