From 6bb8bea5a9d6334f4007eb358c8159a49da7eed9 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 20 Oct 2017 11:15:26 +0200 Subject: [PATCH] core: update line info after requesting the event handle Just as we do when requesting the regular line handle - update line info to reflect the changes after the event request. Signed-off-by: Bartosz Golaszewski --- src/lib/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/core.c b/src/lib/core.c index 80e04bf..7e950d2 100644 --- a/src/lib/core.c +++ b/src/lib/core.c @@ -415,6 +415,7 @@ static int line_request_event_single(struct gpiod_line *line, line->state = LINE_REQUESTED_EVENTS; line->fd = req.fd; + line_maybe_update(line); return 0; } -- 2.30.2