mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Added custom (switch) box naming.
This commit is contained in:
parent
acdccd5a16
commit
f3ec114a2a
8 changed files with 52 additions and 6 deletions
|
@ -54,6 +54,17 @@ static uint8_t activeLinkedMacArray[MAX_MODE_ACTIVATION_CONDITION_COUNT];
|
|||
|
||||
PG_REGISTER_ARRAY(modeActivationCondition_t, MAX_MODE_ACTIVATION_CONDITION_COUNT, modeActivationConditions, PG_MODE_ACTIVATION_PROFILE, 2);
|
||||
|
||||
#if defined(USE_CUSTOM_BOX_NAMES)
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(modeActivationConfig_t, modeActivationConfig, PG_MODE_ACTIVATION_CONFIG, 0);
|
||||
|
||||
PG_RESET_TEMPLATE(modeActivationConfig_t, modeActivationConfig,
|
||||
.box_user_1_name = { 0 },
|
||||
.box_user_2_name = { 0 },
|
||||
.box_user_3_name = { 0 },
|
||||
.box_user_4_name = { 0 },
|
||||
);
|
||||
#endif
|
||||
|
||||
bool IS_RC_MODE_ACTIVE(boxId_e boxId)
|
||||
{
|
||||
return bitArrayGet(&rcModeActivationMask, boxId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue