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

DigitalInputChange class does not work when initialised with FALLING #654

Open
avanlievenoogen opened this issue May 11, 2023 · 0 comments

Comments

@avanlievenoogen
Copy link

When the object is initialised with FALLING, the triggered_ member is only set with a falling signal because only then the ISR is called. As the routine during tick(), checks for a changed output, this check always fails as the _lastoutput is never made high again. And as such the handler attached to the digitalInput is never called. I would think this check should only take place when you initialised the object with CHANGE.

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

1 participant