JackOfAll wrote: 
> Don't want to send two codes. If multiple codes are returned from lircrc
> lookup, before the NULL, last one from the lirc file will overwrite
> earlier ir_code, so will only have one ir_code to send. This is the
> behaviour I would like. Last mapping in the lircrc file overrides
> earlier.
> 
> > 
Code:
--------------------
  >   > 
  > ##
  > ## KEY_VOLUMEUP
  > ##   
  > begin
  > remote = devinput
  > button = KEY_6
  > repeat = 1
  > prog = squeezelite
  > config = power
  > end  
  > begin
  > remote = devinput
  > button = KEY_6
  > repeat = 1
  > prog = squeezelite
  > config = volup
  > end
  > 
--------------------
> > 
> 
> So power and volup will be returned in that order, from the lircrc
> lookup while loop, then the NULL. The volup on the second loop which
> overwrites the "dummy" power cmd in the ir_code from the first loop.
> Can be achieved, I think, by just getting rid of the "break" without
> any other changes.
> 
> > 
Code:
--------------------
  >   > 
  > Press KEY_6, two mapping returned from lircrc lookup. Second overwrites 
first. Only second "volup" actually sent to server.
  > 
  > [17:05:02.143874] ir_thread:122 ir lircrc lookup: 0000000080010007 00 KEY_6 
devinput -> power -> 768940bf
  > [17:05:06.898982] ir_thread:122 ir lircrc lookup: 0000000080010007 00 KEY_6 
devinput -> volup -> 7689807f
  > 
--------------------
> > 

My code was sending the first code, yours the last - probably moot in
the case of only one button mapping...  Otherwise this works ok?


------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
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