PXX2 pulses now received on external module

This commit is contained in:
Bertrand Songis
2019-02-21 12:27:52 +01:00
parent 4b339bebbe
commit 9472fd2132
4 changed files with 21 additions and 8 deletions
@@ -21,7 +21,6 @@
#include "opentx.h"
ModuleFifo intmoduleFifo;
uint8_t intmoduleErrors;
void intmoduleStop()
{
@@ -80,7 +79,7 @@ extern "C" void INTMODULE_USART_IRQHandler(void)
while (status & (USART_FLAG_RXNE | USART_FLAG_ERRORS)) {
uint8_t data = INTMODULE_USART->DR;
if (status & USART_FLAG_ERRORS) {
intmoduleErrors++;
intmoduleFifo.errors++;
}
else {
intmoduleFifo.push(data);