From 65062d0d5b21f838aa0043a15ce54cfab8d72c43 Mon Sep 17 00:00:00 2001
From: wujiazhi <1147861305@qq.com>
Date: Tue, 11 Jun 2024 14:23:53 +0800
Subject: [PATCH] 1.Fixed communication failure between MCU and wireless module 2.Fix the wrong judgment of alkaline lithium power

---
 HARDWARE/UART/uart.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/HARDWARE/UART/uart.c b/HARDWARE/UART/uart.c
index a30d82f..c6abdc7 100644
--- a/HARDWARE/UART/uart.c
+++ b/HARDWARE/UART/uart.c
@@ -265,6 +265,7 @@
 {
   for (uint16_t i = 0; i < send_len; i++)
   {
+    IWDT_Clr();
     UARTx_TXBUF_Write(UARTx, pSendData[i]); // ����������д�뷢�ͼĴ���
     while (RESET == UARTx_ISR_TXSE_Chk(UARTx))
       ; // �ȴ��������
@@ -274,6 +275,7 @@
                                                             : "UART1");
   for (uint16_t i = 0; i < send_len; i++)
   {
+    IWDT_Clr();
     printf("0x%02x ", pSendData[i]);
   }
   printf("\r\n");

--
Gitblit v1.9.3