Private
Public Access
2
0

firmata: add timeout for firmata_pull failing

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-03-21 11:46:13 +00:00
parent df2e131d26
commit ec267c3482
3 changed files with 20 additions and 1 deletions

View File

@@ -59,6 +59,13 @@ firmata_new(const char* name)
return (res);
}
void
firmata_close(t_firmata* firmata)
{
mraa_uart_stop(firmata->uart);
free(firmata);
}
int
firmata_pull(t_firmata* firmata)
{