mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Replace profile.activate and rcOptions with
profile.modeActivationCondition and rcModeActivationMask. Implementation of using and setting modeActivationConditions is missing.
This commit is contained in:
parent
6f4ef82f7d
commit
c0fd0c1f33
11 changed files with 119 additions and 108 deletions
|
@ -106,7 +106,7 @@ bool determineNewTelemetryEnabledState(void)
|
|||
|
||||
if (telemetryPortIsShared) {
|
||||
if (telemetryConfig->telemetry_switch)
|
||||
enabled = rcOptions[BOXTELEMETRY];
|
||||
enabled = IS_RC_MODE_ACTIVE(BOXTELEMETRY);
|
||||
else
|
||||
enabled = ARMING_FLAG(ARMED);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue