AP_RCProtocol: remove pointless 100kbaud speed change
added.opened is set to false. Next time we check_added_uart, the baud rate is unconditionally set in each of the phases. Thus this line has no effect except to confuse the reader
This commit is contained in:
parent
266fbabb6f
commit
7c774d02bb
@ -303,7 +303,6 @@ void AP_RCProtocol::check_added_uart(void)
|
||||
if (added.phase > CONFIG_420000_8N1) {
|
||||
added.phase = (enum config_phase)0;
|
||||
}
|
||||
added.baudrate = (added.baudrate==100000)?115200:100000;
|
||||
added.opened = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user