Channel_event. Off for all channel
patriot_stv
Posts: 26
Hello!
I have the following code:
Integer SourceBtn[] = {11,12,13,14}
channel_event [dvRemote, SourceBtn[] {
On : {switch (channel.channel){
case 11 : do something
Case 12: do something
Etc.}}
Off: {switch (channel.channel){
case 11:
Case 12:
Ets.}}
}
How can I perform the necessary action to me, only when all channels are switched off in this array?
I have the following code:
Integer SourceBtn[] = {11,12,13,14}
channel_event [dvRemote, SourceBtn[] {
On : {switch (channel.channel){
case 11 : do something
Case 12: do something
Etc.}}
Off: {switch (channel.channel){
case 11:
Case 12:
Ets.}}
}
How can I perform the necessary action to me, only when all channels are switched off in this array?
0
Comments
How are you handling OFF or source=0? Tracking the currently selected source (including OFF) would be cleaner for panel button feedback.
I think we need to know more about the scenario than you have provided in the original post. Based on what I think you are doing, this is the approach I would use.
and to disable all I perform total_off ... and as soon as all the channels is disabled, you need to send a shutdown command to the devices) bad idea?
If the project requirement has you acting on channel feedback, then Nick has provided an answer that will work for your needs. For me, I still need more information because I find the question to be out of context, and the additional details would aid me in providing a better and more complete answer.
Maybe others can chime in.