File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,10 @@ void sleep(void)
32
32
SCB -> SCR |= SCB_SCR_SEVONPEND_Msk ;
33
33
34
34
// If the SoftDevice is enabled, its API must be used to go to sleep.
35
- if (softdevice_handler_isEnabled ())
36
- {
35
+ if (softdevice_handler_isEnabled ()) {
37
36
sd_power_mode_set (NRF_POWER_MODE_LOWPWR );
38
37
sd_app_evt_wait ();
39
- }
40
- else
41
- {
38
+ } else {
42
39
NRF_POWER -> TASKS_LOWPWR = 1 ;
43
40
44
41
// Note: it is not sufficient to just use WFE here, since the internal
Original file line number Diff line number Diff line change @@ -32,13 +32,10 @@ void sleep(void)
32
32
SCB -> SCR |= SCB_SCR_SEVONPEND_Msk ;
33
33
34
34
// If the SoftDevice is enabled, its API must be used to go to sleep.
35
- if (softdevice_handler_isEnabled ())
36
- {
35
+ if (softdevice_handler_isEnabled ()) {
37
36
sd_power_mode_set (NRF_POWER_MODE_LOWPWR );
38
37
sd_app_evt_wait ();
39
- }
40
- else
41
- {
38
+ } else {
42
39
NRF_POWER -> TASKS_LOWPWR = 1 ;
43
40
44
41
// Note: it is not sufficient to just use WFE here, since the internal
You can’t perform that action at this time.
0 commit comments