From 17d9afd14652be924ec200c5c69097d7dc8f493d Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Thu, 14 Mar 2024 12:31:32 +0800 Subject: [PATCH] remove unused code --- Core/Src/stm32_lpm_if.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/Src/stm32_lpm_if.c b/Core/Src/stm32_lpm_if.c index ec02912..a04384d 100644 --- a/Core/Src/stm32_lpm_if.c +++ b/Core/Src/stm32_lpm_if.c @@ -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