Skip to content

Commit 46f1191

Browse files
authored
Merge pull request #41 from Phoenix1747/patch-1
Switch to sleep_ms
2 parents adf6144 + e727d52 commit 46f1191

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit SleepyDog Library
2-
version=1.6.2
2+
version=1.6.3
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Arduino library to use the watchdog timer for system reset and low power sleep.

utility/WatchdogRP2040.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ int WatchdogRP2040::sleep(int maxPeriodMS) {
5555
return 0;
5656

5757
// perform a lower power (WFE) sleep (pico-core calls sleep_ms(sleepTime))
58-
delay(maxPeriodMS);
58+
sleep_ms(maxPeriodMS);
5959

6060
return maxPeriodMS;
6161
}
6262

63-
#endif // ARDUINO_ARCH_RP2040
63+
#endif // ARDUINO_ARCH_RP2040

0 commit comments

Comments
 (0)