diff options
Diffstat (limited to 'rpc_client_serial.c')
-rw-r--r-- | rpc_client_serial.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/rpc_client_serial.c b/rpc_client_serial.c index b27c255..149998e 100644 --- a/rpc_client_serial.c +++ b/rpc_client_serial.c @@ -33,6 +33,7 @@ */ #include <stdio.h> +#include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> @@ -44,15 +45,9 @@ #include "hal_internal.h" #include "slip_internal.h" -/* XXX These REALLY ought to be passed from the client app command line, - * rather than compiled into the library. - */ -#define DEVICE "/dev/ttyUSB1" -#define SPEED B921600 - hal_error_t hal_rpc_client_transport_init(void) { - return hal_serial_init(DEVICE, SPEED); + return hal_serial_init(HAL_CLIENT_SERIAL_DEFAULT_DEVICE, HAL_CLIENT_SERIAL_DEFAULT_SPEED); } hal_error_t hal_rpc_client_transport_close(void) |