mirror of https://github.com/ArduPilot/ardupilot
AP_SerialManager: add AP::serialmanager()
This commit is contained in:
parent
6728598099
commit
b3f5e807a6
|
@ -411,3 +411,13 @@ bool AP_SerialManager::protocol_match(enum SerialProtocol protocol1, enum Serial
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
namespace AP {
|
||||
|
||||
AP_SerialManager &serialmanager()
|
||||
{
|
||||
return *AP_SerialManager::get_instance();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -161,3 +161,7 @@ private:
|
|||
// protocol_match - returns true if the protocols match
|
||||
bool protocol_match(enum SerialProtocol protocol1, enum SerialProtocol protocol2) const;
|
||||
};
|
||||
|
||||
namespace AP {
|
||||
AP_SerialManager &serialmanager();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue