-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Deep_sleep_lock Ticker.h Issue #7308
Labels
Comments
Thank you for reporting and also providing a solution, we will review soon |
Internal Jira reference: https://jira.arm.com/browse/IOTHAL-233 |
I'm looking on this one. |
mprse
added a commit
to mprse/mbed-os
that referenced
this issue
Jan 24, 2019
0xc0170
added a commit
that referenced
this issue
Jan 29, 2019
Fix for Issue #7308 (Deep_sleep_lock Ticker.h Issue)
@tpet93 👍 for the bug report with suggestions how to fix. |
Closing since issue appears to be resolved. Please reopen if this is not the case. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In Ticker.h, Ticker::attach_us(Callback<void()> func, us_timestamp_t t) is defined and not just declared.
This causes an issue with the line 119 sleep_manager_lock_deep_sleep();
The deep sleep manager tracks sleep locks using the file name.
the deep sleep lock is placed in "Ticker.h" and removed in "Ticker.cpp"
(line 30)
this causes the sleep manager lock counter to lose count,
Solution
Moving the definition of Ticker::attach_us(Callback<void()> func, us_timestamp_t t)
to Ticker.cpp from Ticker.h solves the issue.
Issue request type
[ ] Question
[ ] Enhancement
[X] Bug
The text was updated successfully, but these errors were encountered: