You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, tried and tested. First it failed, then I compared the code.
The actual line that needs to be added is the third one:
.....
cfmakeraw(&my_termios);
cfsetospeed(&my_termios, speed);
cfsetispeed(&my_termios, cfgetospeed(&my_termios)); <-- This is the actual line that needs to be added.
....
Hello, tried and tested. First it failed, then I compared the code.
The actual line that needs to be added is the third one:
.....
cfmakeraw(&my_termios);
cfsetospeed(&my_termios, speed);
cfsetispeed(&my_termios, cfgetospeed(&my_termios)); <-- This is the actual line that needs to be added.
....
Hi :-)
Great work from your side!! To get this program running on Mac (Silikon) you need one extra line code. Otherwise you get an error:
"k5_receive: bad magic number" or "error 22 Invalid argument"
Function"int openport(char *port,speed_t speed)"
.....
cfmakeraw(&my_termios);
cfsetospeed(&my_termios, speed); <-Needed for MacOS
cfsetispeed(&my_termios, cfgetospeed(&my_termios));
....
Cheers
DO9JN
The text was updated successfully, but these errors were encountered: