From dea15892dc5673b75a0b3965b411cf73536afe10 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 21 Nov 2017 12:10:27 +1100 Subject: [PATCH] AP_Volz_Protocol: use AP::serialmanager() --- libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp b/libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp index d211aecab2..ee0812c6a3 100644 --- a/libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp +++ b/libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp @@ -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); }