mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Use standard cfsetispeed/cfsetospeed to set baud rate on *nix
This commit is contained in:
parent
957d196180
commit
1445708f0f
@ -211,8 +211,8 @@ serial_open(const char*devpath, unsigned long baud, signed short timeout, bool p
|
|||||||
case 0:
|
case 0:
|
||||||
break;
|
break;
|
||||||
case 115200:
|
case 115200:
|
||||||
my_termios.c_cflag &= ~CBAUD;
|
cfsetispeed( &my_termios, B115200 );
|
||||||
my_termios.c_cflag |= B115200;
|
cfsetospeed( &my_termios, B115200 );
|
||||||
break;
|
break;
|
||||||
// TODO: try some higher speeds with the Icarus and BFL to see
|
// TODO: try some higher speeds with the Icarus and BFL to see
|
||||||
// if they support them and if setting them makes any difference
|
// if they support them and if setting them makes any difference
|
||||||
|
Loading…
Reference in New Issue
Block a user