Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RP2040 sleep compile error #40

Closed
NuclearPhoenixx opened this issue Oct 24, 2022 · 0 comments
Closed

RP2040 sleep compile error #40

NuclearPhoenixx opened this issue Oct 24, 2022 · 0 comments

Comments

@NuclearPhoenixx
Copy link
Contributor

Hi there,

I'm running the sleep.ino example on a Raspberry Pi Pico with the latest version of the library and get an error when compiling:

C:\Users\Admin\Documents\Arduino\libraries\Adafruit_SleepyDog_Library\utility\WatchdogRP2040.cpp: In member function 'int WatchdogRP2040::sleep(int)':
C:\Users\Admin\Documents\Arduino\libraries\Adafruit_SleepyDog_Library\utility\WatchdogRP2040.cpp:58:3: error: 'delay' was not declared in this scope
   58 |   delay(maxPeriodMS);
      |   ^~~~~

exit status 1

Compilation error: exit status 1

Let me know if you need anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants