AP_Volz_Protocol: use AP::serialmanager()
This commit is contained in:
parent
b3f5e807a6
commit
dea15892dc
@ -31,11 +31,8 @@ AP_Volz_Protocol::AP_Volz_Protocol(void)
|
|||||||
|
|
||||||
void AP_Volz_Protocol::init(void)
|
void AP_Volz_Protocol::init(void)
|
||||||
{
|
{
|
||||||
AP_SerialManager *serial_manager = AP_SerialManager::get_instance();
|
AP_SerialManager &serial_manager = AP::serialmanager();
|
||||||
if (!serial_manager) {
|
port = serial_manager.find_serial(AP_SerialManager::SerialProtocol_Volz,0);
|
||||||
return;
|
|
||||||
}
|
|
||||||
port = serial_manager->find_serial(AP_SerialManager::SerialProtocol_Volz,0);
|
|
||||||
update_volz_bitmask(bitmask);
|
update_volz_bitmask(bitmask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user