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
static ssize_t
// Is there any other smarter way to differentiate irtoy from irdroid ? maybe via the different VID/PID of the modules?
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.
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]