pref: 优化通信
This commit is contained in:
@@ -108,9 +108,7 @@ void USART3_IRQHandler(void)
|
||||
void UART4_IRQHandler(void)
|
||||
{
|
||||
if (USART_GetITStatus(UART4, USART_IT_RXNE) != RESET) {
|
||||
uint8_t data_s = 0;
|
||||
uart_query_byte(UART_4, &data_s);
|
||||
by_frame_parse_uart_handle(data_s);
|
||||
by_frame_parse_uart_handle(USART_ReceiveData(UART4));
|
||||
USART_ClearITPendingBit(UART4, USART_IT_RXNE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user