remove unused code

This commit is contained in:
Yunhorn 2024-03-14 12:31:32 +08:00
parent 492245e039
commit 17d9afd146
1 changed files with 2 additions and 0 deletions

View File

@ -83,7 +83,9 @@ void PWR_EnterOffMode(void)
#if 1
//HAL_GPIO_WritePin(GPIOB, GPIO_PIN_2, GPIO_PIN_RESET); /* LED OFF */
HAL_SuspendTick();
HAL_UART_DeInit(&huart2);
LL_PWR_ClearFlag_WU();
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB);
HAL_PWR_EnterSTANDBYMode();
#endif