mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Renamed serial port callback
This commit is contained in:
parent
98c5e0298a
commit
53981adbb7
7 changed files with 15 additions and 16 deletions
|
@ -369,8 +369,8 @@ void usartIrqHandler(uartPort_t *s)
|
|||
uint32_t ISR = s->USARTx->ISR;
|
||||
|
||||
if (!s->rxDMAChannel && (ISR & USART_FLAG_RXNE)) {
|
||||
if (s->port.callback) {
|
||||
s->port.callback(s->USARTx->RDR);
|
||||
if (s->port.rxCallback) {
|
||||
s->port.rxCallback(s->USARTx->RDR);
|
||||
} else {
|
||||
s->port.rxBuffer[s->port.rxBufferHead++] = s->USARTx->RDR;
|
||||
if (s->port.rxBufferHead >= s->port.rxBufferSize) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue