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 <dirk@hohndel.org>
This commit is contained in:
parent
3a17156be6
commit
fb15ef18f6
@ -418,8 +418,10 @@ serial_configure (serial_t *device, int baudrate, int databits, int parity, int
|
|||||||
|
|
||||||
// Apply the new settings.
|
// Apply the new settings.
|
||||||
if (tcsetattr (device->fd, TCSANOW, &tty) != 0) {
|
if (tcsetattr (device->fd, TCSANOW, &tty) != 0) {
|
||||||
|
#if 0 // who cares
|
||||||
SYSERROR (device->context, errno);
|
SYSERROR (device->context, errno);
|
||||||
return -1;
|
return -1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure a custom baudrate if necessary.
|
// Configure a custom baudrate if necessary.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user