Private
Public Access
2
0

mock: implement UART functionality

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Alex Tereschenko
2016-10-16 16:57:10 +02:00
committed by Brendan Le Foll
parent 8a9efd1bcc
commit 9f03afbcbc
19 changed files with 666 additions and 3 deletions

View File

@@ -261,7 +261,7 @@ mraa_uart_init_raw(const char* path)
init_raw_cleanup:
if (status != MRAA_SUCCESS) {
if (dev != NULL) {
if (dev->fd != -1) {
if (dev->fd >= 0) {
close(dev->fd);
}
free(dev);