From a6a0759e70adbfaf9b2b090bd0c25541be8bb104 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期四, 05 六月 2025 14:07:55 +0800
Subject: [PATCH] 2.85,加入按下按键点击震动100ms 原来是10ms没感觉

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

diff --git a/Src/main.c b/Src/main.c
index 2ab8cfb..05e3afd 100644
--- a/Src/main.c
+++ b/Src/main.c
@@ -257,7 +257,7 @@
 
 
 
-void ErrorConfig_Handler(void)
+void CommapErrorCheck(void)
 {
 		if(g_com_map[COM_INTERVAL]==0||g_com_map[COM_INTERVAL]>1000)
 	{
@@ -288,7 +288,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)|77;
+	g_com_map[VERSION] = (2<<8)|85;
     
 //	g_com_map[DEV_ID]=0x7;
 #ifdef DEBUG_MODE
@@ -304,6 +304,7 @@
 //g_com_map[NOMOVESLEEP_TIME]=10;
 //	g_com_map[IMU_ENABLE]=0;
 //	 g_com_map[COM_INTERVAL]=50;
+    CommapErrorCheck();
 	active_flag = g_com_map[ACTIVE_INDEX];
 
 //g_com_map[HEIGHTOFFEST_INDEX]=g_com_map[MAX_REPORT_ANC_NUM];

--
Gitblit v1.9.3