mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Enable warnings element by default for all OSD profiles (#7577)
Enable warnings element by default for all OSD profiles
This commit is contained in:
commit
b0c65b3bd2
1 changed files with 5 additions and 1 deletions
|
@ -1436,7 +1436,11 @@ void pgResetFn_osdConfig(osdConfig_t *osdConfig)
|
|||
}
|
||||
|
||||
// Always enable warnings elements by default
|
||||
osdConfig->item_pos[OSD_WARNINGS] = OSD_POS(9, 10) | OSD_PROFILE_1_FLAG;
|
||||
uint16_t profileFlags = 0;
|
||||
for (unsigned i = 1; i <= OSD_PROFILE_COUNT; i++) {
|
||||
profileFlags |= OSD_PROFILE_FLAG(i);
|
||||
}
|
||||
osdConfig->item_pos[OSD_WARNINGS] = OSD_POS(9, 10) | profileFlags;
|
||||
|
||||
// Default to old fixed positions for these elements
|
||||
osdConfig->item_pos[OSD_CROSSHAIRS] = OSD_POS(13, 6);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue