mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_OSD: correct compilation without OSD_ENABLED
The max7456 header file is guarded by his macro
This commit is contained in:
parent
d002fde67e
commit
016c9d8239
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user