diff --git a/libraries/AP_ADSB/AP_ADSB_Sagetech.cpp b/libraries/AP_ADSB/AP_ADSB_Sagetech.cpp index 33aab10df2..d1d902dbcd 100644 --- a/libraries/AP_ADSB/AP_ADSB_Sagetech.cpp +++ b/libraries/AP_ADSB/AP_ADSB_Sagetech.cpp @@ -45,7 +45,7 @@ // detect if any port is configured as Sagetech bool AP_ADSB_Sagetech::detect() { - return (AP::serialmanager().find_serial(AP_SerialManager::SerialProtocol_ADSB, 0) != nullptr); + return AP::serialmanager().have_serial(AP_SerialManager::SerialProtocol_ADSB, 0); } // Init, called once after class is constructed diff --git a/libraries/AP_ADSB/AP_ADSB_uAvionix_UCP.cpp b/libraries/AP_ADSB/AP_ADSB_uAvionix_UCP.cpp index 931a8671d7..0547bb85d1 100644 --- a/libraries/AP_ADSB/AP_ADSB_uAvionix_UCP.cpp +++ b/libraries/AP_ADSB/AP_ADSB_uAvionix_UCP.cpp @@ -45,7 +45,7 @@ extern const AP_HAL::HAL &hal; // detect if any port is configured as uAvionix_UCP bool AP_ADSB_uAvionix_UCP::detect() { - return (AP::serialmanager().find_serial(AP_SerialManager::SerialProtocol_ADSB, 0) != nullptr); + return AP::serialmanager().have_serial(AP_SerialManager::SerialProtocol_ADSB, 0); }