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
1 changed files with 1 additions and 1 deletions

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);
}