aboutsummaryrefslogtreecommitdiff
path: root/rpc_client_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc_client_serial.c')
-rw-r--r--rpc_client_serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc_client_serial.c b/rpc_client_serial.c
index d6bda1d..5194793 100644
--- a/rpc_client_serial.c
+++ b/rpc_client_serial.c
@@ -52,7 +52,7 @@ static int fd = -1;
hal_error_t hal_rpc_client_transport_init(void)
{
struct termios tty;
-
+
fd = open(DEVICE, O_RDWR | O_NOCTTY | O_SYNC);
if (fd == -1)
return perror("open"), HAL_ERROR_RPC_TRANSPORT;
@@ -98,7 +98,7 @@ hal_error_t hal_rpc_send(const uint8_t * const buf, const size_t len)
hal_error_t hal_rpc_recv(uint8_t * const buf, size_t * const len)
{
int ret;
-
+
if ((ret = hal_slip_recv(buf, *len)) == -1)
return HAL_ERROR_RPC_TRANSPORT;
*len = ret;