projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a903b5
)
core: fix single line event requests with flags
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Thu, 13 Jul 2017 16:07:25 +0000
(18:07 +0200)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Thu, 13 Jul 2017 16:07:25 +0000
(18:07 +0200)
We currently always request rising edge events for the 'flags'
variants. Request correct event types.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c
patch
|
blob
|
history
diff --git
a/src/lib/core.c
b/src/lib/core.c
index 4a2ef84f1c18123ce7042f205a0a77068b49dbb8..b3b16e59ae1291a6de1d435ace4642b273334d01 100644
(file)
--- a/
src/lib/core.c
+++ b/
src/lib/core.c
@@
-636,14
+636,14
@@
int gpiod_line_request_falling_edge_events_flags(struct gpiod_line *line,
int flags)
{
return line_event_request_type(line, consumer, flags,
- GPIOD_REQUEST_EVENT_
RIS
ING_EDGE);
+ GPIOD_REQUEST_EVENT_
FALL
ING_EDGE);
}
int gpiod_line_request_both_edges_events_flags(struct gpiod_line *line,
const char *consumer, int flags)
{
return line_event_request_type(line, consumer, flags,
- GPIOD_REQUEST_EVENT_
RISING_EDGE
);
+ GPIOD_REQUEST_EVENT_
BOTH_EDGES
);
}
int gpiod_line_request_bulk(struct gpiod_line_bulk *bulk,