mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_OSD: avoid building MAX7456 driver without an SPI device for it
This commit is contained in:
parent
6f04b4a5ec
commit
25746ef27e
@ -197,6 +197,7 @@ void AP_OSD::init()
|
||||
break;
|
||||
|
||||
case OSD_MAX7456: {
|
||||
#ifdef HAL_WITH_SPI_OSD
|
||||
AP_HAL::OwnPtr<AP_HAL::Device> spi_dev = std::move(hal.spi->get_device("osd"));
|
||||
if (!spi_dev) {
|
||||
break;
|
||||
@ -206,6 +207,7 @@ void AP_OSD::init()
|
||||
break;
|
||||
}
|
||||
hal.console->printf("Started MAX7456 OSD\n");
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user