Skip to content

Commit 3eae0f5

Browse files
committed
Adding Barrier instruction to standbyMode to prevent hangs after sleep as per this pull request: f2d8483
1 parent ad4b54c commit 3eae0f5

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)