Skip to content

Commit

Permalink
AP_OSD: use minimize_features.inc for OSD defines
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jun 27, 2022
1 parent 0717d6b commit d2e8e6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_OSD/AP_OSD.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
#include <AP_Baro/AP_Baro.h>

#ifndef OSD_ENABLED
#define OSD_ENABLED !HAL_MINIMIZE_FEATURES
#define OSD_ENABLED 1
#endif

#ifndef HAL_WITH_OSD_BITMAP
#define HAL_WITH_OSD_BITMAP OSD_ENABLED && (defined(HAL_WITH_SPI_OSD) || defined(WITH_SITL_OSD))
#endif

#ifndef OSD_PARAM_ENABLED
#define OSD_PARAM_ENABLED !HAL_MINIMIZE_FEATURES
#define OSD_PARAM_ENABLED 1
#endif

#ifndef HAL_OSD_SIDEBAR_ENABLE
#define HAL_OSD_SIDEBAR_ENABLE !HAL_MINIMIZE_FEATURES
#define HAL_OSD_SIDEBAR_ENABLE 1
#endif

class AP_OSD_Backend;
Expand Down

0 comments on commit d2e8e6a

Please sign in to comment.