@@ -24,7 +24,9 @@
|
||||
Fifo<uint8_t, BT_TX_FIFO_SIZE> btTxFifo;
|
||||
Fifo<uint8_t, BT_RX_FIFO_SIZE> btRxFifo;
|
||||
|
||||
#if defined(PCBX7) || defined(PCBXLITE)
|
||||
#if defined(PCBX7ACCESS)
|
||||
//nothing to do
|
||||
#elif defined(PCBX7) || defined(PCBXLITE)
|
||||
volatile uint8_t btChipPresent = 0;
|
||||
#endif
|
||||
|
||||
@@ -117,7 +119,9 @@ extern "C" void BT_USART_IRQHandler(void)
|
||||
uint8_t byte = USART_ReceiveData(BT_USART);
|
||||
btRxFifo.push(byte);
|
||||
TRACE("BT %02X", byte);
|
||||
#if defined(PCBX7) || defined(PCBXLITE)
|
||||
#if defined(PCBX7ACCESS)
|
||||
//nothing to do
|
||||
#elif defined(PCBX7) || defined(PCBXLITE)
|
||||
if (!btChipPresent) {
|
||||
// This is to differentiate X7 and X7S and X-Lite with/without BT
|
||||
btChipPresent = 1;
|
||||
|
||||
Reference in New Issue
Block a user