diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-29 13:20:09 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-29 13:20:09 +0200 |
commit | cda074439b33a6a36431300a55943f5dba4384ea (patch) | |
tree | e4fe498f1fc97b45548cb10606197a53f75b633a /client | |
parent | 529f067e65b0146c5afa150103809ba5e09869b7 (diff) |
remove useless linux_serial options and fix sim.h color macros
Diffstat (limited to 'client')
-rw-r--r-- | client/serial_linux.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/serial_linux.c b/client/serial_linux.c index ae8e646..080dca1 100644 --- a/client/serial_linux.c +++ b/client/serial_linux.c @@ -71,7 +71,7 @@ bool w2_serial_write(char *data, uint8_t length) { } bool w2_serial_open(const char *port_name) { - g_w2_serial_handle = open(port_name, O_RDWR | O_NOCTTY | O_NONBLOCK); + g_w2_serial_handle = open(port_name, O_RDWR | O_NONBLOCK); if (g_w2_serial_handle < 0 || tcgetattr(g_w2_serial_handle, &g_w2_tty) != 0) return false; g_w2_tty_old = g_w2_tty; @@ -80,8 +80,6 @@ bool w2_serial_open(const char *port_name) { cfsetospeed(&g_w2_tty, baud); cfsetispeed(&g_w2_tty, baud); - g_w2_tty.c_cflag &= ~(PARENB | CSTOPB | CSIZE | CRTSCTS); - g_w2_tty.c_cflag |= CS8 | CREAD | CLOCAL; g_w2_tty.c_cc[VMIN] = 0; g_w2_tty.c_cc[VTIME] = 0; |