missing replacements

This commit is contained in:
Robin Müller 2022-11-03 10:12:05 +01:00
parent 6efa482eb0
commit 00f1c5bbe9
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -31,8 +31,7 @@ void uart::setBaudrate(struct termios& options, UartBaudRate baud) {
cfsetspeed(&options, B150); cfsetspeed(&options, B150);
break; break;
case UartBaudRate::RATE_200: case UartBaudRate::RATE_200:
cfsetispeed(&options, B200); cfsetspeed(&options, B200);
cfsetospeed(&options, B200);
break; break;
case UartBaudRate::RATE_300: case UartBaudRate::RATE_300:
cfsetspeed(&options, B300); cfsetspeed(&options, B300);
@ -53,8 +52,7 @@ void uart::setBaudrate(struct termios& options, UartBaudRate baud) {
cfsetspeed(&options, B4800); cfsetspeed(&options, B4800);
break; break;
case UartBaudRate::RATE_9600: case UartBaudRate::RATE_9600:
cfsetispeed(&options, B9600); cfsetspeed(&options, B9600);
cfsetospeed(&options, B9600);
break; break;
case UartBaudRate::RATE_19200: case UartBaudRate::RATE_19200:
cfsetspeed(&options, B19200); cfsetspeed(&options, B19200);
@ -79,8 +77,7 @@ void uart::setBaudrate(struct termios& options, UartBaudRate baud) {
cfsetspeed(&options, B500000); cfsetspeed(&options, B500000);
break; break;
case UartBaudRate::RATE_576000: case UartBaudRate::RATE_576000:
cfsetispeed(&options, B576000); cfsetspeed(&options, B576000);
cfsetospeed(&options, B576000);
break; break;
case UartBaudRate::RATE_921600: case UartBaudRate::RATE_921600:
cfsetspeed(&options, B921600); cfsetspeed(&options, B921600);
@ -101,8 +98,7 @@ void uart::setBaudrate(struct termios& options, UartBaudRate baud) {
cfsetspeed(&options, B2500000); cfsetspeed(&options, B2500000);
break; break;
case UartBaudRate::RATE_3000000: case UartBaudRate::RATE_3000000:
cfsetispeed(&options, B3000000); cfsetspeed(&options, B3000000);
cfsetospeed(&options, B3000000);
break; break;
case UartBaudRate::RATE_3500000: case UartBaudRate::RATE_3500000:
cfsetspeed(&options, B3500000); cfsetspeed(&options, B3500000);