From 1f2179c2ec05e3f7579b4f9f7486a2aeb2b1a142 Mon Sep 17 00:00:00 2001 From: Brendan Higgins Date: Sat, 29 Jan 2022 17:47:24 -0500 Subject: [PATCH] Fix: EventDevice: Actually save file descriptor after opening file from path EventDevice has a constructor that opens from a path; however, it does not actually save the file descriptor for the open file causing initialization to always fail. This fixes that. Signed-off-by: Brendan Higgins --- evdevPlus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evdevPlus.cpp b/evdevPlus.cpp index 7f05122..2fc4bdc 100644 --- a/evdevPlus.cpp +++ b/evdevPlus.cpp @@ -22,7 +22,7 @@ void EventDevice::__open(const std::string &path, int open_flags) { throw std::system_error(errno, std::system_category(), "failed to open device"); path_ = path; - + fd_ = fd; } void EventDevice::__close() {