Menu

#269 Support for Irdroid in Irtoy.c driver

0.10
closed
nobody
irdroid (1)
notabug
2017-04-05
2017-02-22
No

Hi,

I have the Irdroid USB Infrared tranceiver module which is practically a fork of the irtoy. The Irdroid module firmware does not support "SetPin()" . I have found a workaround for that - see the patch below:

--- lirc-0.9.4d/plugins/irtoy.c.orig 2017-01-23 10:23:38.000000000 +0100
+++ lirc-0.9.4d/plugins/irtoy.c 2017-02-05 16:42:19.203099837 +0100
@@ -171,13 +171,16 @@
static int setPin(unsigned int pin, int state)
{
unsigned int mask = 1 << pin;
-
+#if 0
IOdirections &= ~mask;
if (state)
IOdata |= mask;
else
IOdata &= ~mask;
return setIOData();
+#else

  • return 0;
    +#endif
    }

static ssize_t

// Is there any other smarter way to differentiate irtoy from irdroid ? maybe via the different VID/PID of the modules?

Discussion

  • Bengt Martensson

    This issue has been discussed several times on the mailing list. IrDroid is a simplified clone of IrToy to a substantially higher price. On December 17, a fix was checked into the Git, containing a considerably better fix.

    So just get the current Git. The ticket can be closed.

     
  • Alec Leamas

    Alec Leamas - 2017-03-05
    • status: open --> closed
    • Resolution: na --> notabug
     
  • Alec Leamas

    Alec Leamas - 2017-03-05

    Indeed, the irdroid support was added in [07d3d3]. Thanks for patch and reporting, but given the existing support this is not-a-bug.

     

    Related

    Commit: [07d3d3]

  • Alec Leamas

    Alec Leamas - 2017-04-05
    • Milestone: 1.0 --> 0.10
     

Log in to post a comment.