AP_OSD: avoid build when OSD disabled

This commit is contained in:
Andrew Tridgell 2020-03-12 12:57:43 +11:00
parent 822460ce7d
commit 6360c67858
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,9 @@
*/
#include "AP_OSD.h"
#if OSD_ENABLED
#include "AP_OSD_MAX7456.h"
#ifdef WITH_SITL_OSD
#include "AP_OSD_SITL.h"
@ -400,3 +403,5 @@ void AP_OSD::set_nav_info(NavInfo &navinfo)
AP_OSD *AP::osd() {
return AP_OSD::get_singleton();
}
#endif // OSD_ENABLED