From ce81a4f4f2fc05df51b5a2449a29513cdd7250d7 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期六, 07 十一月 2020 17:35:17 +0800 Subject: [PATCH] V1.18 1对10防撞发货 --- Src/main.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/main.c b/Src/main.c index 40c9556..59bc4d1 100644 --- a/Src/main.c +++ b/Src/main.c @@ -242,7 +242,7 @@ Usart1ParseDataCallback = UsartParseDataHandler; parameter_init(); //deca_sleep(1000); - g_com_map[VERSION] = 0x0111; + g_com_map[VERSION] = 0x0112; #ifdef DEBUG_MODE // g_com_map[DEV_ROLE]=1; // g_com_map[DEV_ID]=1; @@ -408,7 +408,8 @@ } if(m_bEUARTTxEn==0&&waitusart_timer==0&&(motor_state==0||motor_state==3)) { -#ifndef DEBUG_MODE +#ifndef DEBUG_MODE +if(!HAL_GPIO_ReadPin(INPUT_5V_GPIO_Port,INPUT_5V_Pin)) HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); #endif } -- Gitblit v1.9.3