Open sergerold opened 3 years ago
I agree that the systick interrupt change should be added, but would note that code in the ArduinoLowPower library prevents the serial port from being reestablished after deep sleep. Currently, this does not occur when manually calling USBDevice.detach()
and USBDevice.attach()
and using the RTCZero standbyMode()
functionality.
I also wonder if the ArduinoLowPower library is attaching and detaching the USBDevice even when no USB connection is present. If so, it could be a good idea to have an auto-detect, or a user-configurable option to not have this action taken.
Hi
These functions are designed to do the same thing but the sleep() function has a number of advantages (e.g. disabling systick) which can cause issues
Thanks