Copy/Paste error on second serial port Rx

This commit is contained in:
bsongis
2014-08-31 22:46:36 +02:00
parent 4eebdfb39d
commit 8562bee9c1
+3 -3
View File
@@ -131,15 +131,15 @@ extern "C" void USART3_IRQHandler(void)
}
// Receive
uint32_t status = SPORT->SR;
uint32_t status = USART3->SR;
while (status & (USART_FLAG_RXNE | USART_FLAG_ERRORS)) {
uint8_t data = SPORT->DR;
uint8_t data = USART3->DR;
if (uart3Telemetry && !(status & USART_FLAG_ERRORS)) {
telemetryFifo.push(data);
}
status = SPORT->SR;
status = USART3->SR;
}
}