AP_OSD: correct compilation without OSD_ENABLED

The max7456 header file is guarded by his macro
This commit is contained in:
Peter Barker 2022-05-12 23:01:27 +10:00 committed by Andrew Tridgell
parent d002fde67e
commit 016c9d8239

View File

@ -267,7 +267,9 @@ void AP_OSD::init()
if (!spi_dev) {
break;
}
#if HAL_WITH_OSD_BITMAP
backend = AP_OSD_MAX7456::probe(*this, std::move(spi_dev));
#endif
if (backend == nullptr) {
break;
}