Skip to content

Commit cc75c59

Browse files
author
Arto Kinnunen
committed
Revert "Disable sleep on STM32F4 as an workaround for stability issues."
This reverts commit c3ef3ca.
1 parent aa375c4 commit cc75c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_pwr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry)
391391
if(SLEEPEntry == PWR_SLEEPENTRY_WFI)
392392
{
393393
/* Request Wait For Interrupt */
394-
__NOP();
394+
__WFI();
395395
}
396396
else
397397
{

0 commit comments

Comments
 (0)