trivial: Set up two flags not set by cfmakeraw()

This commit is contained in:
Richard Hughes 2017-01-10 12:49:19 +00:00
parent 7a44ff9748
commit dc390e3a68

View File

@ -369,6 +369,11 @@ fu_device_altos_tty_open (FuDeviceAltos *device, GError **error)
return FALSE;
}
/* one input byte is enough to return
* inter-character timer off */
termios.c_cc[VMIN] = 1;
termios.c_cc[VTIME] = 0;
/* set all new data */
if (tcsetattr (priv->tty_fd, TCSAFLUSH, &termios) < 0) {
g_set_error_literal (error,