AP_SerialManager:correct find_baudrate() function

This commit is contained in:
xianglunkai 2022-07-25 12:41:09 +08:00 committed by Peter Barker
parent b365fc129d
commit b728b8179d
1 changed files with 1 additions and 1 deletions

View File

@ -630,7 +630,7 @@ uint32_t AP_SerialManager::find_baudrate(enum SerialProtocol protocol, uint8_t i
if (_state == nullptr) { if (_state == nullptr) {
return 0; return 0;
} }
return state->baudrate(); return _state->baudrate();
} }
// find_portnum - find port number (SERIALn index) for a protocol and instance, -1 for not found // find_portnum - find port number (SERIALn index) for a protocol and instance, -1 for not found