Skip to content

Commit 7ab52e2

Browse files
authored
Merge pull request #42 from marcobrianza/patch-1
added barrier instruction in standbyMode()
2 parents de4016b + f2d8483 commit 7ab52e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RTCZero.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ void RTCZero::standbyMode()
148148
// Entering standby mode when connected
149149
// via the native USB port causes issues.
150150
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
151+
__DSB();
151152
__WFI();
152153
}
153154

0 commit comments

Comments
 (0)