From fb15ef18f674ccb18eb852f6018d091c62e07653 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 2 Feb 2015 07:31:33 -0800 Subject: [PATCH] Don't report errors if we can't set serial mode That's just silly and breaks using the simulator. Signed-off-by: Dirk Hohndel --- src/serial_posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/serial_posix.c b/src/serial_posix.c index 2b0c3fa..e0e609a 100644 --- a/src/serial_posix.c +++ b/src/serial_posix.c @@ -418,8 +418,10 @@ serial_configure (serial_t *device, int baudrate, int databits, int parity, int // Apply the new settings. if (tcsetattr (device->fd, TCSANOW, &tty) != 0) { +#if 0 // who cares SYSERROR (device->context, errno); return -1; +#endif } // Configure a custom baudrate if necessary.