29 if (not port->got_options)
31 if (tcsetattr(port->file.descriptor, TCSANOW, &port->options.termios) != 0)
33 log_error(
"Unable to apply the attributes of the terminal: %s", strerror(errno));
36 port->got_options =
false;
bool serial_apply_options(serial_port_t *port)
Apply the options immediatly.
Simplistic logging utilities.
#define log_error(...)
Report a condition causing the current operation to abort.
Configure and read from serial ports as buffered input streams.
Dynamic string implementation.