Why does TO not work on this code?
vegastech
Posts: 369
DEFINE_DEVICE dvTPMB_TV = 10001:7:0 //MBed TP Plasma Vol functions TV_MBED = 5001:14:0 //Physical IR port for the plasma BUTTON_EVENT[dvTPMB_TV,0] //Typically Volume Controls { PUSH: { TO[TV_MBED,BUTTON.INPUT.CHANNEL] } }When this code executes, the IR is pulsed instead of continuously sent while I hold down the button.
If I change the code to a stacked button event:
BUTTON_EVENT[dvTPMB_TV,24] //vol up BUTTON_EVENT[dvTPMB_TV,25] //vol dn { PUSH: { TO[TV_MBED,BUTTON.INPUT.CHANNEL] } }It works fine. Is it something to do with the wildcard?
0
Comments
I use BIC w/ the "0" catch all when ever I use the "0" so I can say with certainty that BIC isn't the culprit. There used to be issues with "0" and holds that seems to have been resolved so I'm thinking it must be how the "TO" is handled by the system that makes a difference when using "0".
In TPD4 is the panel button set up as momemtary? If so that could be the problem.
You might just do the "TO" yourself in code by issuing an ON[TP,BIC] in the push and OFF[TP,BIC] in the release. Basically this is all a "TO" is, turning some type of channel on until it's released.