AP_OSD: re-enable OSD parameters on 1Mb boards since it wasn't doing anything

Make sure OSD parameters can be disabled in hwdef.dat
This commit is contained in:
Andy Piper 2020-09-09 22:04:22 +01:00 committed by Andrew Tridgell
parent 570fd59c39
commit 04b3b1f4c2
2 changed files with 5 additions and 1 deletions

View File

@ -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
}

View File

@ -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;