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

gpioSetTimerFunc NULL cancel error #397

Closed
smdjeff opened this issue Oct 18, 2020 · 2 comments
Closed

gpioSetTimerFunc NULL cancel error #397

smdjeff opened this issue Oct 18, 2020 · 2 comments

Comments

@smdjeff
Copy link

smdjeff commented Oct 18, 2020

The gpioSetTimerFunc documentation suggests a timer can be canceled by simply passing null as the function parameter. However, this results in a soft error related to the millis parameter range. If the function parameter is null, the check for PI_MIN_MS should probably be skipped.

@guymcswain
Copy link
Collaborator

Without having checked the source, this sounds reasonable. Would you care to submit a pull request? I will merge it to the develop branch soon after and whenever the next release is made - likely toward the end of year- it'll get merged into master.

@guymcswain
Copy link
Collaborator

Fixed in v79

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

2 participants