From cda074439b33a6a36431300a55943f5dba4384ea Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 29 May 2022 13:20:09 +0200 Subject: remove useless linux_serial options and fix sim.h color macros --- client/serial_linux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'client') 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; -- cgit v1.2.3