Skip to content

Commit f2d8483

Browse files
authored
added barrier instruction in standbyMode()
I'm proposing this change as is implemented in https://github.com/arduino-libraries/ArduinoLowPower/blob/master/src/samd/ArduinoLowPower.cpp#L27 I have been experiencing board freeze without it.
1 parent de4016b commit f2d8483

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RTCZero.cpp

Lines changed: 1 addition & 0 deletions
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)