Skip to content

Conversation

@dcpleung
Copy link
Member

@dcpleung dcpleung commented Feb 7, 2019

The controller does not support trigger. However, the check for
this condition was incorrectly (as GPIO_INT_LEVEL is 0). So fix
it.

Signed-off-by: Daniel Leung [email protected]

The controller does not support trigger. However, the check for
this condition was incorrectly (as GPIO_INT_LEVEL is 0). So fix
it.

Signed-off-by: Daniel Leung <[email protected]>
Copy link
Contributor

@pabigot pabigot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd have gone with

if ((flags & GPIO_INT) && !(flags & GPIO_INT_EDGE))

rather than nested if, but yeah, this will probably work better.

@codecov-io
Copy link

Codecov Report

Merging #13143 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #13143   +/-   ##
=======================================
  Coverage   48.73%   48.73%           
=======================================
  Files         315      315           
  Lines       46538    46538           
  Branches    10743    10743           
=======================================
  Hits        22678    22678           
  Misses      19348    19348           
  Partials     4512     4512

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b6204b...49e688b. Read the comment docs.

@galak galak merged commit d9da0b0 into zephyrproject-rtos:master Feb 8, 2019
@dcpleung dcpleung deleted the gpio_sch_fix_again branch February 8, 2019 18:01
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.

4 participants