mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-03 03:57:51 +00:00
fixes
This commit is contained in:
parent
40070218c3
commit
58558f2f9c
@ -111,8 +111,10 @@ volatile uint16_t PPM_data[NUM_CHN];
|
||||
#define TXBUFFER_SIZE 32
|
||||
volatile uint8_t rx_buff[RXBUFFER_SIZE];
|
||||
volatile uint8_t rx_ok_buff[RXBUFFER_SIZE];
|
||||
#ifndef BASH_SERIAL
|
||||
volatile uint8_t tx_buff[TXBUFFER_SIZE];
|
||||
volatile uint8_t idx = 0;
|
||||
#endif
|
||||
volatile uint8_t discard_frame = 0;
|
||||
|
||||
//Serial protocol
|
||||
uint8_t sub_protocol;
|
||||
@ -1116,9 +1118,11 @@ static void set_rx_tx_addr(uint32_t id)
|
||||
#endif
|
||||
|
||||
{ // RX interrupt
|
||||
static uint8_t idx=0;
|
||||
#ifdef XMEGA
|
||||
if((USARTC0.STATUS & 0x1C)==0) // Check frame error, data overrun and parity error
|
||||
#else
|
||||
sei();
|
||||
#if defined STM32_board
|
||||
if(USART2_BASE->SR & USART_SR_RXNE) {
|
||||
if((USART2_BASE->SR &0x0F)==0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user