Adafruit_SleepyDog icon indicating copy to clipboard operation
Adafruit_SleepyDog copied to clipboard

Update WatchdogAVR.cpp

Open peter-scholtens opened this issue 3 years ago • 0 comments

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)```

peter-scholtens avatar Mar 07 '21 18:03 peter-scholtens