mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
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:
parent
570fd59c39
commit
04b3b1f4c2
@ -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
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user