mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-10 13:28:14 +00:00
Fixed invert serial compilation
This commit is contained in:
parent
2ac704178c
commit
ec2086e0f7
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user