From f44cc16dd8860a3e5f2798df02d465862f16b99b Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Wed, 22 Feb 2017 06:21:38 +0100 Subject: [PATCH] CRCInput::set_rc_hw: Fix device check for cs hd2 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/5cac45ccb837955bd03b9b2cc41e415c983139d7 Author: Michael Liebmann Date: 2017-02-22 (Wed, 22 Feb 2017) --- src/driver/rcinput.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index 6161fb941..b7974a09c 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -1822,7 +1822,11 @@ void CRCInput::set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address) } int fd = -1; for (std::vector::iterator it = indev.begin(); it != indev.end(); ++it) { - if ((*it).path == "/dev/input/nevis_ir") { + if (((*it).path == "/dev/input/nevis_ir") +#ifdef BOXMODEL_CS_HD2 + || ((*it).path == "/dev/input/input0") +#endif + ){ fd = (*it).fd; break; }