Core/Src/main.c
@@ -926,6 +926,7 @@ } uint16_t work_time; uint8_t input5vtime=10; uint8_t jingzhiflag; void HAL_LPTIM_CompareMatchCallback(LPTIM_HandleTypeDef *hlptim) { SystemClock_Config(); @@ -976,7 +977,14 @@ nomove_count++; Sleep_Panduan_Poll(); Bat_Percent_Poll(); if(nomove_count>30) { jingzhiflag=1; } else { jingzhiflag=0; } if(HAL_GPIO_ReadPin(INPUT_5V_GPIO_Port,INPUT_5V_Pin)&&chongman_flag==0) { }