Skip to content

callbackFunction is executed instantly following an enable() #5

@HattonLe

Description

@HattonLe

if you use set() only once in your app setup code, and use enable() \ disable() to control the event functionality, e.g. implementing a one-shot as per -->
callback() { /* do something later.../; disable(); } armcallback() { / do something now..*/.; enable(); }
you will find no delay happening between something now and something later on the first callback. This is inconsistent behaviour.

Suggest modifying enable() to include the line "lastTime = millis();"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions