1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 03:20:00 +03:00

Set OSD elements to HD defaults if build includes USE_OSD_HD (#13325)

Make HD the default option if included in build
This commit is contained in:
Mark Haslinghuis 2024-01-24 23:55:09 +01:00 committed by GitHub
parent a4356689fa
commit 2cd24cf02a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -440,12 +440,13 @@ void pgResetFn_osdConfig(osdConfig_t *osdConfig)
void pgResetFn_osdElementConfig(osdElementConfig_t *osdElementConfig)
{
#ifdef USE_OSD_SD
uint8_t midRow = 7;
uint8_t midCol = 15;
#else
// If user includes OSD_HD in the build assume they want to use it as default
#ifdef USE_OSD_HD
uint8_t midRow = 10;
uint8_t midCol = 26;
#else
uint8_t midRow = 7;
uint8_t midCol = 15;
#endif
// Position elements near centre of screen and disabled by default