mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
PID-Audio feature
This commit is contained in:
parent
5a258070bc
commit
92d19e7be6
13 changed files with 304 additions and 1 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue