mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Removed 'tlm_switch', replaced with 'isModeActivationConditionPresent(BOXTELEMETRY)'.
This commit is contained in:
parent
7b831f94ee
commit
19a360b867
6 changed files with 6 additions and 9 deletions
|
@ -775,8 +775,8 @@ bool processRx(timeUs_t currentTimeUs)
|
|||
|
||||
#ifdef USE_TELEMETRY
|
||||
if (feature(FEATURE_TELEMETRY)) {
|
||||
if ((!telemetryConfig()->telemetry_switch && ARMING_FLAG(ARMED)) ||
|
||||
(telemetryConfig()->telemetry_switch && IS_RC_MODE_ACTIVE(BOXTELEMETRY))) {
|
||||
if ((!isModeActivationConditionPresent(BOXTELEMETRY) && ARMING_FLAG(ARMED)) ||
|
||||
(isModeActivationConditionPresent(BOXTELEMETRY) && IS_RC_MODE_ACTIVE(BOXTELEMETRY))) {
|
||||
|
||||
releaseSharedTelemetryPorts();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue