Fixed invert serial compilation

This commit is contained in:
pascallanger 2016-09-01 20:12:17 +02:00
parent 2ac704178c
commit ec2086e0f7

View File

@ -407,6 +407,7 @@ inline void tx_resume()
{ {
#ifdef TELEMETRY #ifdef TELEMETRY
if(!IS_TX_PAUSE_on) if(!IS_TX_PAUSE_on)
{
#ifdef XMEGA #ifdef XMEGA
USARTC0.CTRLA = (USARTC0.CTRLA & 0xFC) | 0x01 ; // Resume telemetry by enabling transmitter interrupt USARTC0.CTRLA = (USARTC0.CTRLA & 0xFC) | 0x01 ; // Resume telemetry by enabling transmitter interrupt
#else #else
@ -414,6 +415,7 @@ inline void tx_resume()
UCSR0B |= _BV(UDRIE0); // Resume telemetry by enabling transmitter interrupt UCSR0B |= _BV(UDRIE0); // Resume telemetry by enabling transmitter interrupt
#endif #endif
#endif #endif
}
#endif #endif
} }
@ -430,8 +432,10 @@ static void protocol_init()
tx_pause(); tx_pause();
pass=0; pass=0;
telemetry_link=0; telemetry_link=0;
tx_tail=0; #ifndef BASH_SERIAL
tx_head=0; tx_tail=0;
tx_head=0;
#endif
#endif #endif
blink=millis(); blink=millis();