mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Renamed serial port callback
This commit is contained in:
parent
98c5e0298a
commit
53981adbb7
7 changed files with 15 additions and 16 deletions
|
@ -237,8 +237,8 @@ static uartDevice_t* uartHardwareMap[] = {
|
|||
void uartIrqHandler(uartPort_t *s)
|
||||
{
|
||||
if (!s->rxDMAStream && (USART_GetITStatus(s->USARTx, USART_IT_RXNE) == SET)) {
|
||||
if (s->port.callback) {
|
||||
s->port.callback(s->USARTx->DR);
|
||||
if (s->port.rxCallback) {
|
||||
s->port.rxCallback(s->USARTx->DR);
|
||||
} else {
|
||||
s->port.rxBuffer[s->port.rxBufferHead] = s->USARTx->DR;
|
||||
s->port.rxBufferHead = (s->port.rxBufferHead + 1) % s->port.rxBufferSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue