|
|
@@ -24,6 +24,7 @@
|
|
|
#include <stdio.h>
|
|
|
|
|
|
#include "string.h"
|
|
|
+#include "E104-BT5005A.h"
|
|
|
/* Private includes ----------------------------------------------------------*/
|
|
|
/* USER CODE BEGIN Includes */
|
|
|
/* USER CODE END Includes */
|
|
|
@@ -273,7 +274,7 @@ void USART3_IRQHandler(void)
|
|
|
HAL_UART_Receive_DMA(&huart3, rx_buf, received_len); // 重新启动
|
|
|
}else {
|
|
|
printf("数据接收完毕");
|
|
|
- __HAL_UART_DISABLE_IT(&huart3, UART_IT_IDLE);
|
|
|
+ E104_BT5005A_SLEEP_Fun();
|
|
|
receiveBlDataCount = 0;
|
|
|
workMode = 1;
|
|
|
}
|