mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Added a mcfg.telemetry_switch for CLI
If telemetry_switch=1 it change baudrate and protocol using aux channel, either it switch when armed/disarmed. This allows to keep MSP serial while armed for BT dongle if needed.
This commit is contained in:
parent
0d974e2882
commit
7bd2db04be
5 changed files with 12 additions and 6 deletions
|
@ -266,7 +266,7 @@ void serialInit(uint32_t baudrate)
|
|||
if (feature(FEATURE_INFLIGHT_ACC_CAL))
|
||||
availableBoxes[idx++] = BOXCALIB;
|
||||
availableBoxes[idx++] = BOXOSD;
|
||||
if (feature(FEATURE_TELEMETRY))
|
||||
if (feature(FEATURE_TELEMETRY && mcfg.telemetry_switch))
|
||||
availableBoxes[idx++] = BOXTELEMETRY;
|
||||
numberBoxItems = idx;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue