bengtmartensson / DevSlashLirc

Object oriented access to /dev/lirc-hardware from C++ and Java
http://www.harctoolbox.org/
GNU General Public License v3.0
4 stars 4 forks source link

open fails on Fedora 25. #5

Closed bengtmartensson closed 7 years ago

bengtmartensson commented 7 years ago

This is the the problem of https://github.com/bengtmartensson/harctoolboxbundle/issues/177

bengtmartensson commented 7 years ago

Turns out that the API for /dev/lirc has changed: man lirc(4) says:

   LIRC_GET_REC_MODE
       Return the receive mode, which will be one of:

       LIRC_MODE_MODE2 (void)
              The driver returns a sequence of pulse/space durations.

       LIRC_MODE_LIRCCODE
              The driver returns integer values, each of which  represents
              a decoded button press.

   If  a device returns an error code for LIRC_GET_REC_MODE, it is safe to
   assume it is not a lirc device.

What an API!