aboutsummaryrefslogtreecommitdiff
path: root/rpc_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc_serial.c')
-rw-r--r--rpc_serial.c2
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: