diff options
Diffstat (limited to 'Projects/NUCLEO-WB15CC/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Src/stm32_lpm_if.c')
-rw-r--r-- | Projects/NUCLEO-WB15CC/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Src/stm32_lpm_if.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Projects/NUCLEO-WB15CC/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Src/stm32_lpm_if.c b/Projects/NUCLEO-WB15CC/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Src/stm32_lpm_if.c index 7200d866b..e4e8fd597 100644 --- a/Projects/NUCLEO-WB15CC/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Src/stm32_lpm_if.c +++ b/Projects/NUCLEO-WB15CC/Applications/BLE_LLD/BLE_LLD_Pressbutton/Core/Src/stm32_lpm_if.c @@ -168,11 +168,7 @@ void PWR_EnterStopMode( void ) /************************************************************************************ * ENTER STOP MODE ***********************************************************************************/ -#if(STM32WB15xx != 0) - LL_PWR_SetPowerMode( LL_PWR_MODE_STOP1 ); -#else - LL_PWR_SetPowerMode( LL_PWR_MODE_STOP2 ); -#endif + LL_PWR_SetPowerMode(CFG_PWR_MODE_STOP); LL_LPM_EnableDeepSleep( ); /**< Set SLEEPDEEP bit of Cortex System Control Register */ |