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

ActualMS could be misleading #3

Open
arkhipenko opened this issue Nov 14, 2015 · 1 comment
Open

ActualMS could be misleading #3

arkhipenko opened this issue Nov 14, 2015 · 1 comment

Comments

@arkhipenko
Copy link

Hi,
I get the intent of actualMS variable, but it could be misleading. If the device is awaken from the sleep mode by a hardware interrupt (for instance arduino uno deep sleep could be interrupted by an external pin interrupt on pins 2 and 3) then there is no way to tell how long the device has been actually slept (unless of course you have an external clock source like a RTC to check against).
Not a big deal, but worth a mention in the REAMDE perhaps.

@sampscl
Copy link

sampscl commented Feb 14, 2018

I would call this a bug. If you've gone to sleep and an interrupt has woke you up, the return value is wrong. It should be possible to store the value of the RTC before sleep and after, subtract the two, and return that instead.

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