mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-04 19:14:26 +00:00
Fix the problem of seting up termio of ttyUSB0 for icarus. the CSIZE
is the mask of CS2/4/8 From: navyxliu <navy.xliu@gmail.com>
This commit is contained in:
parent
2b8cbf61ca
commit
ef3b0657dd
@ -409,10 +409,10 @@ int serial_open(const char *devpath, unsigned long baud, signed short timeout, b
|
||||
applog(LOG_WARNING, "Unrecognized baud rate: %lu", baud);
|
||||
}
|
||||
|
||||
my_termios.c_cflag &= ~(CSIZE | PARENB);
|
||||
my_termios.c_cflag |= CS8;
|
||||
my_termios.c_cflag |= CREAD;
|
||||
my_termios.c_cflag |= CLOCAL;
|
||||
my_termios.c_cflag &= ~(CSIZE | PARENB);
|
||||
|
||||
my_termios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK |
|
||||
ISTRIP | INLCR | IGNCR | ICRNL | IXON);
|
||||
|
Loading…
x
Reference in New Issue
Block a user