kopia lustrzana https://github.com/sq5bpf/k5prog
Merge cca2dc9530
into 241ab18b61
commit
7f937ef7cc
1
k5prog.c
1
k5prog.c
|
@ -199,6 +199,7 @@ int openport(char *port,speed_t speed)
|
|||
my_termios.c_cflag = CS8 |CREAD | CLOCAL | HUPCL;
|
||||
cfmakeraw(&my_termios);
|
||||
cfsetospeed(&my_termios, speed);
|
||||
cfsetispeed(&my_termios, speed);
|
||||
if ( tcsetattr(fd, TCSANOW, &my_termios))
|
||||
{
|
||||
printf("tcsetattr error %d %s\n", errno, strerror(errno));
|
||||
|
|
Ładowanie…
Reference in New Issue