fix: 修复之前提交中的一些问题

This commit is contained in:
2024-01-09 17:20:08 +08:00
parent 768bcbaa1c
commit 07f9bcc33d
6 changed files with 12 additions and 8 deletions

View File

@@ -38,6 +38,7 @@
#include "by_imu.h"
#include "jj_blueteeth.h"
#include "by_buzzer.h"
#include "jj_blueteeth.h"
void NMI_Handler(void) __attribute__((interrupt()));
void HardFault_Handler(void) __attribute__((interrupt()));
@@ -92,8 +93,8 @@ void USART1_IRQHandler(void)
void USART2_IRQHandler(void)
{
if (USART_GetITStatus(USART2, USART_IT_RXNE) != RESET) {
uart_query_byte(UART_2,&bt_buffer);
bt_rx_flag=true;
uart_query_byte(UART_2, &bt_buffer);
bt_rx_flag = true;
USART_ClearITPendingBit(USART2, USART_IT_RXNE);
}
}