Skip to content

Commit 07495fb

Browse files
committed
Silence deprecation warning
1 parent 71810da commit 07495fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cores/nRF5/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ int main( void )
7070
_loopTaskHandle = xTaskCreateStatic(loopTask, "mlt", MAIN_TASK_STACK_SIZE,
7171
NULL, 1, _mainStack, &_mainTaskBuffer);
7272

73-
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
73+
uint32_t scr = SCB->SCR;
74+
scr |= SCB_SCR_SLEEPDEEP_Msk;
75+
SCB->SCR = scr;
7476

7577
vTaskStartScheduler();
7678

0 commit comments

Comments
 (0)