simple: fix the active_low switch in gpiod_simple_event_loop()
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 24 Sep 2017 19:11:45 +0000 (21:11 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Sun, 24 Sep 2017 19:11:45 +0000 (21:11 +0200)
commit7c75363af8c9a56f6a4ec028359c8c126dae673e
treeb6ce5b52f2d26cd4d06b88731500df515894bf88
parentf0455aa13edf210f7ded3d82c13c91a18f8c8d4e
simple: fix the active_low switch in gpiod_simple_event_loop()

We're incorrectly passing the boolean active_low argument to
gpiod_line_request_both_edges_events_flags() as flags. Add the same
conversion as in the other simple API routines.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/simple.c