AP_SerialManager: use protocol_match in find_baudrate

This commit is contained in:
Jonathan Challinger 2015-04-06 14:16:53 -07:00
parent 11d0801c99
commit 6e8008ab69
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ uint32_t AP_SerialManager::find_baudrate(enum SerialProtocol protocol, uint8_t i
// search for matching protocol
for(uint8_t i=0; i<SERIALMANAGER_NUM_PORTS; i++) {
if ((enum SerialProtocol)state[i].protocol.get() == protocol) {
if (protocol_match(protocol, (enum SerialProtocol)state[i].protocol.get())) {
if (found_instance == instance) {
return map_baudrate(state[i].baud);
}