We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c136cc + 7b605b6 commit 461d59aCopy full SHA for 461d59a
targets/TARGET_STM/sleep.c
@@ -163,9 +163,9 @@ void hal_sleep(void)
163
// LPR: When this bit is set, the regulator is switched from main mode (MR) to low-power mode (LPR).
164
int lowPowerMode = PWR->CR1 & PWR_CR1_LPR;
165
if (lowPowerMode) {
166
- HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI);
167
- } else {
168
HAL_PWR_EnterSLEEPMode(PWR_LOWPOWERREGULATOR_ON, PWR_SLEEPENTRY_WFI);
+ } else {
+ HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI);
169
}
170
#else
171
HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI);
0 commit comments