Merge pull request #96 from eerimoq/master

Exit if output speed cannot be set.
This commit is contained in:
Martin Lund 2021-01-18 01:13:42 +01:00 committed by GitHub
commit 161f613e08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -381,7 +381,7 @@ void tty_configure(void)
} }
// Set output speed // Set output speed
cfsetospeed(&tio, baudrate); status = cfsetospeed(&tio, baudrate);
if (status == -1) if (status == -1)
{ {
error_printf("Could not configure output speed (%s)", strerror(errno)); error_printf("Could not configure output speed (%s)", strerror(errno));