waf: prevent warnings about OSD_ENABLED in build

This commit is contained in:
Andrew Tridgell 2020-03-12 10:45:34 +11:00
parent 64b54fd92a
commit 1b5e5de0d1
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ class sitl(Board):
cfg.fatal("Failed to find SFML libraries")
if cfg.options.sitl_osd:
env.CXXFLAGS += ['-DWITH_SITL_OSD','-DOSD_ENABLED=ENABLED','-DHAL_HAVE_AP_ROMFS_EMBEDDED_H']
env.CXXFLAGS += ['-DWITH_SITL_OSD','-DOSD_ENABLED=1','-DHAL_HAVE_AP_ROMFS_EMBEDDED_H']
import fnmatch
for f in os.listdir('libraries/AP_OSD/fonts'):
if fnmatch.fnmatch(f, "font*bin"):