Browse Source

AP_OSD: avoid build when OSD disabled

c415-sdk
Andrew Tridgell 5 years ago
parent
commit
6360c67858
  1. 5
      libraries/AP_OSD/AP_OSD.cpp

5
libraries/AP_OSD/AP_OSD.cpp

@ -18,6 +18,9 @@ @@ -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) @@ -400,3 +403,5 @@ void AP_OSD::set_nav_info(NavInfo &navinfo)
AP_OSD *AP::osd() {
return AP_OSD::get_singleton();
}
#endif // OSD_ENABLED

Loading…
Cancel
Save