1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Merge pull request #3036 from cleanflight/spracingf7dual-pidaudio (#5586)

PID-Audio feature
This commit is contained in:
Michael Keller 2018-04-01 11:08:41 +12:00 committed by GitHub
parent 5a258070bc
commit 92d19e7be6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 304 additions and 1 deletions

View file

@ -88,6 +88,7 @@ static const box_t boxes[CHECKBOX_ITEM_COUNT] = {
{ BOXUSER2, "USER2", 41 },
{ BOXUSER3, "USER3", 42 },
{ BOXUSER4, "USER4", 43 },
{ BOXPIDAUDIO, "PID AUDIO", 44 },
};
// mask of enabled IDs, calculated on startup based on enabled features. boxId_e is used as bit index
@ -287,6 +288,10 @@ void initActiveBoxIds(void)
}
#endif
#if defined(USE_PID_AUDIO)
BME(BOXPIDAUDIO);
#endif
#undef BME
// check that all enabled IDs are in boxes array (check may be skipped when using findBoxById() functions)
for (boxId_e boxId = 0; boxId < CHECKBOX_ITEM_COUNT; boxId++)