Skip to content

Conversation

@peter-scholtens
Copy link

My arduino IDE includes the file arduino-1.8.13/hardware/tools/avr/avr/include/avr/sleep.h which contains already a sleep_disable() call, see the definition below. So it can be removed? Or is this done differently in the various boards?

#define sleep_mode() \
do {                 \
    sleep_enable();  \
    sleep_cpu();     \
    sleep_disable(); \
} while (0)```

My arduino IDE includes the file arduino-1.8.13/hardware/tools/avr/avr/include/avr/sleep.h which contains already a sleep_disable() call, see the definition below. So it can be removed? Or is this done differently in the various boards?

#define sleep_mode() \
do {                 \
    sleep_enable();  \
    sleep_cpu();     \
    sleep_disable(); \
} while (0)
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

Successfully merging this pull request may close these issues.

1 participant