10000 GPIO: Add checks for bool returns by toxuin · Pull Request #692 · nkolban/esp32-snippets · GitHub
[go: up one dir, main page]

Skip to content

GPIO: Add checks for bool returns #692

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

Merged
merged 1 commit into from
Oct 14, 2018
Merged

GPIO: Add checks for bool returns #692

merged 1 commit into from
Oct 14, 2018

Conversation

toxuin
Copy link
Contributor
@toxuin toxuin commented Oct 14, 2018

Light fixes to GPIO class.

  • GPIO::read has implicit conversion from int to bool.

  • gpio_set_level accepts a int argument, bool given.

@nkolban nkolban merged commit 51e943f into nkolban:master Oct 14, 2018
@toxuin toxuin deleted the gpio-check branch October 14, 2018 23:58
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

Successfully merging this pull request may close these issues.

2 participants
0