diff --git a/library.properties b/library.properties index cbb0ded..d59250e 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit SleepyDog Library -version=1.6.2 +version=1.6.3 author=Adafruit maintainer=Adafruit sentence=Arduino library to use the watchdog timer for system reset and low power sleep. diff --git a/utility/WatchdogRP2040.cpp b/utility/WatchdogRP2040.cpp index ee8cacc..e84d298 100644 --- a/utility/WatchdogRP2040.cpp +++ b/utility/WatchdogRP2040.cpp @@ -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 \ No newline at end of file +#endif // ARDUINO_ARCH_RP2040