1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Merge pull request #7431 from DieHertz/f4-uart-fix-incorrect-enum

Fixed incorrect enum value being used for GetITStatus on F4
This commit is contained in:
Michael Keller 2019-01-21 11:35:59 +13:00 committed by GitHub
commit 8e2cba97da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -289,7 +289,7 @@ void uartIrqHandler(uartPort_t *s)
}
}
if (USART_GetITStatus(s->USARTx, USART_FLAG_ORE) == SET)
if (USART_GetITStatus(s->USARTx, USART_IT_ORE) == SET)
{
USART_ClearITPendingBit (s->USARTx, USART_IT_ORE);
}