Skip to content

Commit b892968

Browse files
heeplrpeterbarker
authored andcommitted
1 parent 4628c9e commit b892968

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/AP_HAL_Linux/UARTDevice.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,12 @@ void UARTDevice::set_speed(uint32_t baudrate)
119119
return;
120120
}
121121

122-
// use CBAUDEX to gain access to "non-standard" rates that are common for eg. RC receivers
122+
// use CBAUDEX and B(aud)OTHER to gain access to "non-standard" rates that are common for eg. RC receivers
123123
tio.c_cflag &= ~CBAUD;
124124
tio.c_cflag |= CBAUDEX;
125+
#if defined BOTHER
126+
tio.c_cflag |= BOTHER;
127+
#endif
125128
tio.c_ispeed = baudrate;
126129
tio.c_ospeed = baudrate;
127130

0 commit comments

Comments
 (0)