telemetry_switch: fixed condition when using softserial

This commit is contained in:
KipK 2014-01-17 11:07:59 +01:00
parent 7bd2db04be
commit e198f1727b
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ static uint8_t cycleNum = 0;
void sendTelemetry(void)
{
if ((mcfg.telemetry_softserial == TELEMETRY_UART && !f.ARMED && !mcfg.telemetry_switch) || ( mcfg.telemetry_switch && !rcOptions[BOXTELEMETRY]))
if (mcfg.telemetry_softserial == TELEMETRY_UART && ((!f.ARMED && !mcfg.telemetry_switch) || ( mcfg.telemetry_switch && !rcOptions[BOXTELEMETRY])))
return;
if (serialTotalBytesWaiting(core.telemport) != 0)