mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_ADSB: use have_serial when detecting
avoid find_serial() as it changes port options
This commit is contained in:
parent
63ff047c16
commit
6728a7f681
@ -45,7 +45,7 @@
|
|||||||
// detect if any port is configured as Sagetech
|
// detect if any port is configured as Sagetech
|
||||||
bool AP_ADSB_Sagetech::detect()
|
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
|
// Init, called once after class is constructed
|
||||||
|
Loading…
Reference in New Issue
Block a user