Skip to content

Commit 10471dd

Browse files
committed
Sleep also triggers USB subsystem standly
Requires SAMD core >= 1.6.14
1 parent e0fcfbd commit 10471dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/ArduinoLowPower.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ void ArduinoLowPowerClass::idle(uint32_t millis) {
1414
}
1515

1616
void ArduinoLowPowerClass::sleep() {
17+
USBDevice.standby();
1718
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
1819
__DSB();
1920
__WFI();

0 commit comments

Comments
 (0)