AP_ADSB: use have_serial when detecting

avoid find_serial() as it changes port options
This commit is contained in:
Andrew Tridgell 2021-12-20 15:48:35 +11:00
parent a69cf0c936
commit b79962f38e

View File

@ -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