Skip to content

Commit

Permalink
Merge pull request #41 from Phoenix1747/patch-1
Browse files Browse the repository at this point in the history
Switch to sleep_ms
  • Loading branch information
brentru committed Oct 26, 2022
2 parents adf6144 + e727d52 commit 46f1191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit SleepyDog Library
version=1.6.2
version=1.6.3
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Arduino library to use the watchdog timer for system reset and low power sleep.
Expand Down
4 changes: 2 additions & 2 deletions utility/WatchdogRP2040.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ int WatchdogRP2040::sleep(int maxPeriodMS) {
return 0;

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

return maxPeriodMS;
}

#endif // ARDUINO_ARCH_RP2040
#endif // ARDUINO_ARCH_RP2040

0 comments on commit 46f1191

Please sign in to comment.