missing flag-set

This commit is contained in:
folkert van heusden 2024-05-10 01:32:51 +02:00
parent 8489b5b781
commit 32e5f1df42
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -312,6 +312,8 @@ void dc11::set_serial(const int bitrate, const std::string & device)
return; // TODO error handling return; // TODO error handling
} }
serial_thread_running = true;
// from https://stackoverflow.com/questions/6947413/how-to-open-read-and-write-from-serial-port-in-c // from https://stackoverflow.com/questions/6947413/how-to-open-read-and-write-from-serial-port-in-c
termios tty { }; termios tty { };
if (tcgetattr(serial_fd, &tty) == -1) { if (tcgetattr(serial_fd, &tty) == -1) {