AP_Volz_Protocol: use AP::serialmanager()

This commit is contained in:
Peter Barker 2017-11-21 12:10:27 +11:00 committed by Francisco Ferreira
parent b3f5e807a6
commit dea15892dc
1 changed files with 2 additions and 5 deletions

View File

@ -31,11 +31,8 @@ AP_Volz_Protocol::AP_Volz_Protocol(void)
void AP_Volz_Protocol::init(void)
{
AP_SerialManager *serial_manager = AP_SerialManager::get_instance();
if (!serial_manager) {
return;
}
port = serial_manager->find_serial(AP_SerialManager::SerialProtocol_Volz,0);
AP_SerialManager &serial_manager = AP::serialmanager();
port = serial_manager.find_serial(AP_SerialManager::SerialProtocol_Volz,0);
update_volz_bitmask(bitmask);
}