From 9f35a7ac48e064d72a981612a90cdbd445c6e712 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期四, 16 三月 2023 08:35:09 +0800 Subject: [PATCH] 1 --- Src/main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Src/main.c b/Src/main.c index b937b7c..a247a73 100644 --- a/Src/main.c +++ b/Src/main.c @@ -188,6 +188,7 @@ if(HAL_GPIO_ReadPin(INPUT_5V_GPIO_Port,INPUT_5V_Pin)) { nomove_count = 0; + bat_percent=Get_Battary(); if(state5v==0) { state5v=1; @@ -306,7 +307,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] = 0x011a; + g_com_map[VERSION] = (1<<8)|29; active_flag = g_com_map[ACTIVE_INDEX]; module_power = g_com_map[POWER]; imu_enable=g_com_map[IMU_ENABLE]; -- Gitblit v1.9.3