Skip to content

Commit

Permalink
Set OSD elements to HD defaults if build includes USE_OSD_HD (betafli…
Browse files Browse the repository at this point in the history
…ght#13325)

Make HD the default option if included in build
  • Loading branch information
haslinghuis authored Jan 24, 2024
1 parent a435668 commit 2cd24cf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/osd/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cd24cf

Please sign in to comment.