1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Start Frsky telemetry using a switch without beeing armed.

This adds a Telemetry checkbox in the gui.
This commit is contained in:
KipK 2014-01-15 14:53:03 +01:00
parent 8c4a594808
commit e6889aea12
3 changed files with 7 additions and 2 deletions

View file

@ -228,7 +228,7 @@ void initTelemetry(void)
void updateTelemetryState(void)
{
bool State = mcfg.telemetry_softserial != TELEMETRY_UART ? true : f.ARMED;
bool State = mcfg.telemetry_softserial != TELEMETRY_UART ? true : (f.ARMED || rcOptions[BOXTELEMETRY]);
if (State != telemetryEnabled) {
if (mcfg.telemetry_softserial == TELEMETRY_UART) {
@ -246,7 +246,7 @@ static uint8_t cycleNum = 0;
void sendTelemetry(void)
{
if (mcfg.telemetry_softserial == TELEMETRY_UART && !f.ARMED)
if (mcfg.telemetry_softserial == TELEMETRY_UART && !f.ARMED && !rcOptions[BOXTELEMETRY])
return;
if (serialTotalBytesWaiting(core.telemport) != 0)