From 878c6b1be0e565af89841a2c464f60c4220bd78e Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期二, 09 五月 2023 12:27:35 +0800
Subject: [PATCH] 1

---
 Src/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Src/main.c b/Src/main.c
index 819222c..ffcf005 100644
--- a/Src/main.c
+++ b/Src/main.c
@@ -194,7 +194,7 @@
 			state5v=1;
 			UsartInit();
 		}
-		if(HAL_GPIO_ReadPin(PWR_ON_GPIO_Port,PWR_ON_Pin))
+		if(bat_percent>90)
 		{
 			LED_LR_OFF;
 			LED_LG_ON;
@@ -257,7 +257,7 @@
 	hardware_pici= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+2);
 	hardware_type= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+4);
 	//deca_sleep(1000);
-	g_com_map[VERSION] = (2<<8)|3;
+	g_com_map[VERSION] = (2<<8)|4;
     
 //	g_com_map[DEV_ID]=0x7;
 #ifdef DEBUG_MODE

--
Gitblit v1.9.3