Advertisement
svenhoefer

Untitled

Oct 7th, 2017
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.72 KB | None | 0 0
  1. diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp
  2. index bf01d44..e42c6c7 100644
  3. --- a/src/driver/rcinput.cpp
  4. +++ b/src/driver/rcinput.cpp
  5. @@ -1797,12 +1797,14 @@ void CRCInput::set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address)
  6.                 return;
  7.         }
  8.         int fd = -1;
  9. +#if HAVE_COOL_HARDWARE
  10.         for (std::vector<in_dev>::iterator it = indev.begin(); it != indev.end(); ++it) {
  11.                 if ((*it).path == "/dev/input/nevis_ir") {
  12.                         fd = (*it).fd;
  13.                         break;
  14.                 }
  15.         }
  16. +#endif
  17.         if (fd == -1) {
  18.                 printf("[rcinput:%s] no nevis_ir input device found??\n", __func__);
  19.                 return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement