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

---
 Soft/working_time_calculate.h |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/Soft/working_time_calculate.h b/Soft/working_time_calculate.h
new file mode 100644
index 0000000..fb17c2c
--- /dev/null
+++ b/Soft/working_time_calculate.h
@@ -0,0 +1,32 @@
+#ifndef _WORKING_TIME_CALCULATE_H_
+#define _WORKING_TIME_CALCULATE_H_
+
+#include "define_all.h" 
+
+
+//﮵�������ʱ��
+#define LITH_BAT_WORKING_TIME_MAX (3 * 365 * 24) //��λ��Сʱ
+
+#define __LITH_BAT_WORKINGTIME_RECOVER__	do{																						\
+	save_realtime_data_g.lith_bat_working_time_remain_hour = LITH_BAT_WORKING_TIME_MAX;	 	\
+  lith_bat_real_per_g = 100;																														\
+}while(0)
+
+
+
+
+
+#pragma pack(1)
+
+
+
+
+#pragma pack()
+
+extern int8_t lith_bat_real_per_g;
+
+void Remaining_WorkingTime_CalculateProcess(int8_t lith_vcc_per,float lith_vcc);
+
+#endif
+
+

--
Gitblit v1.9.3