From 6ea1a42391f86e72f53042a966dae970a3fd77cb Mon Sep 17 00:00:00 2001
From: jinlicong <493886250@qq.com>
Date: Fri, 17 May 2024 17:18:57 +0800
Subject: [PATCH] 阀门控制进一步完善

---
 CORE/main.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/CORE/main.c b/CORE/main.c
index 8117211..75c7b11 100644
--- a/CORE/main.c
+++ b/CORE/main.c
@@ -24,6 +24,7 @@
 #include "power_manage.h"
 #include "pulse_and_alarm_line.h"
 #include "billing.h"
+#include "linked_list.h"
 
 
 FlagStatus key_awaken_flag_g = RESET;
@@ -56,7 +57,8 @@
 			if(Get_Extern_Rtc_Time(&sys_clockBCD_g) ==FAIL) //��ȡʱ��
 			{
 				//?RTCʱ���쳣����
-				__SYS_STATUS_ALARM_BYTES_SET(rtc_err);
+				if(__SYS_ALARM_CTL_BYTES_GET(rtc_err) == SET)
+					__SYS_STATUS_ALARM_BYTES_SET(rtc_err,ALARM_ID_RTC_BAT_LOW);
 			}
 			
 			/*����ʶ��*/
@@ -123,12 +125,11 @@
 					for(uint8_t count_i=0;count_i<(PULSE_CHECK_DELAY_MS &0xff);count_i++){
 						delay_ms(1);
 						if(pulse_exti_flag == RESET) 
-							break;
-						
-					}
-					
-					//����
+							break;						
+					}				
 				}
+				//����
+				
 				
 			}
 				

--
Gitblit v1.9.3