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