diff --git a/libraries/AP_OSD/AP_OSD.cpp b/libraries/AP_OSD/AP_OSD.cpp index 9914ef3bb0..85e0ff8646 100644 --- a/libraries/AP_OSD/AP_OSD.cpp +++ b/libraries/AP_OSD/AP_OSD.cpp @@ -273,7 +273,11 @@ void AP_OSD::update_osd() // skip the drawing if we are not using a font based backend. This saves a lot of flash space when // using the MSP OSD system on boards that don't have a MAX7456 #if HAL_WITH_OSD_BITMAP +#if OSD_PARAM_ENABLED get_screen(current_screen).draw(); +#else + ((AP_OSD_Screen&)get_screen(current_screen)).draw(); +#endif #endif } diff --git a/libraries/AP_OSD/AP_OSD.h b/libraries/AP_OSD/AP_OSD.h index 31f94ce0f1..64725a7ea1 100644 --- a/libraries/AP_OSD/AP_OSD.h +++ b/libraries/AP_OSD/AP_OSD.h @@ -33,7 +33,7 @@ #endif #ifndef OSD_PARAM_ENABLED -#define OSD_PARAM_ENABLED HAL_WITH_OSD_BITMAP && !HAL_MINIMIZE_FEATURES && BOARD_FLASH_SIZE > 1024 +#define OSD_PARAM_ENABLED HAL_WITH_OSD_BITMAP && !HAL_MINIMIZE_FEATURES #endif class AP_OSD_Backend;