Skip to content

Deep_sleep_lock Ticker.h Issue #7308

Closed
Closed
@tpet93

Description

@tpet93

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions