diff --git a/Core/Src/stm32_lpm_if.c b/Core/Src/stm32_lpm_if.c index a04384d..29e070b 100644 --- a/Core/Src/stm32_lpm_if.c +++ b/Core/Src/stm32_lpm_if.c @@ -84,8 +84,10 @@ void PWR_EnterOffMode(void) //HAL_GPIO_WritePin(GPIOB, GPIO_PIN_2, GPIO_PIN_RESET); /* LED OFF */ HAL_SuspendTick(); HAL_UART_DeInit(&huart2); - LL_PWR_ClearFlag_WU(); + //LL_PWR_ClearFlag_WU(); __HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); + __HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU); + //LL_PWR_ClearFlag_WU(); HAL_PWR_EnterSTANDBYMode(); #endif