diff options
author | Rob Austein <sra@hactrn.net> | 2016-07-06 21:51:50 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-07-06 21:51:50 -0400 |
commit | 32a7c7414a36282a201a5f690cb1fb999bd02b8a (patch) | |
tree | 3ac6b4d0b93fc264a91e9442273a4dec2780c2d3 /rpc_serial.c | |
parent | 7923c24511b1f176dfb69f199fba6fccb4954c0b (diff) |
Previous "fix" to speed setting didn't compile on OSX.
Diffstat (limited to 'rpc_serial.c')
-rw-r--r-- | rpc_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc_serial.c b/rpc_serial.c index 17addee..728bbd8 100644 --- a/rpc_serial.c +++ b/rpc_serial.c @@ -64,6 +64,7 @@ static int fd = -1; hal_error_t hal_serial_init(const char * const device, const uint32_t speed) { struct termios tty; + speed_t termios_speed; fd = open(device, O_RDWR | O_NOCTTY | O_SYNC); if (fd == -1) { @@ -75,7 +76,6 @@ hal_error_t hal_serial_init(const char * const device, const uint32_t speed) return perror("tcgetattr"), HAL_ERROR_RPC_TRANSPORT; #if !HAL_RPC_SERIAL_USE_MACOSX_IOCTL - speed_t termios_speed; switch (speed) { case 115200: |