Closed
Description
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