AP_SerialManager: add AP::serialmanager()

This commit is contained in:
Peter Barker 2017-11-21 12:10:02 +11:00 committed by Francisco Ferreira
parent 6728598099
commit b3f5e807a6
2 changed files with 14 additions and 0 deletions

View File

@ -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();
}
}

View File

@ -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();
};