1
0
Fork 0
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:
Michael Keller 2019-02-17 01:41:22 +13:00 committed by GitHub
commit b0c65b3bd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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