From d66187e82c8715a36aa5c790ed0e01bb0e656081 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期三, 11 十月 2023 11:40:19 +0800 Subject: [PATCH] V2.56 修改震动逻辑 --- Src/main.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Src/main.c b/Src/main.c index 682b8a1..d961702 100644 --- a/Src/main.c +++ b/Src/main.c @@ -133,12 +133,12 @@ if(g_com_map[MOTOR_ENABLE]) { - if(motor_keeptime>0) - { - motor_state = 2; - }else{ - motor_state = 0; - } +// if(motor_keeptime>0) +// { +// motor_state = 2; +// }else{ +// motor_state = 0; +// } //motor_state=2; switch(motor_state) {case 0: @@ -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)|54; + g_com_map[VERSION] = (2<<8)|56; // g_com_map[DEV_ID]=0x7; #ifdef DEBUG_MODE @@ -369,7 +369,7 @@ { g_com_map[MOTORBEEPER_INDEX] = 1; } - hardware_type = g_com_map[MOTORBEEPER_INDEX]; + hardware_type = NSH1;//g_com_map[MOTORBEEPER_INDEX]; switch(hardware_type) { case 1: -- Gitblit v1.9.3