1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

3d on a mode switch

This commit is contained in:
Bryce Johnson 2017-09-24 19:56:46 -05:00
parent 4e325d9290
commit d1a197f99e
8 changed files with 33 additions and 14 deletions

View file

@ -79,6 +79,8 @@ static const box_t boxes[CHECKBOX_ITEM_COUNT] = {
{ BOXFLIPOVERAFTERCRASH, "FLIP OVER AFTER CRASH", 35 },
{ BOXPREARM, "PREARM", 36 },
{ BOXBEEPGPSCOUNT, "BEEP GPS SATELLITE COUNT", 37 },
{ BOX3DONASWITCH, "3D ON A SWITCH", 38 },
};
// mask of enabled IDs, calculated on startup based on enabled features. boxId_e is used as bit index
@ -216,6 +218,7 @@ void initActiveBoxIds(void)
if (feature(FEATURE_3D)) {
BME(BOX3DDISABLE);
BME(BOX3DONASWITCH);
}
if (isMotorProtocolDshot()) {