Adrian,

Sad, the things I go to sleep dreaming about.... And this is just me
hypothesising rather than debugging and proving it....

I think I know where the problem is..... Just getting rid of the break
at line 123 in ir.c, will cure this if I am right. 

Basically, you need to keep calling lirc_code2char until you get a NULL
char or a non zero return. At the moment you break the inner while
(lircrc lookup) loop after the first lookup success, and then continue
the outer loop, but what is happening on second remote key press, is
that lirc_code2char returns the NULL char for the previous loop lookup,
the first time it is called for the second event. So the second (and
every alternate button press isn't lokked up.) ISTR, seeing this when I
did debug the original interactive patch. And I'm pretty sure removing
the break will fix it and result in the last mapping from the lircrc
file being used, rather than the first, at the point there are several
mappings, which is the behaviour I'd want anyway. Hope that makes sense.
;) Will try this myself, after I finish typing this and confirm.


------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to