Question:
How do you change the priority override to a toggling button in the Vote Solutions system?
Answer:
The design of this operation is intended to be a momentary action. In order to make it a toggling action, some custom code will need to be added. This can be accomplished by changing the channel code of the Priority Override button, on the touch panel, to an unused channel number. Then write a BUTTON_EVENT for that new button that performs a DO_PUSH and a DO_RELEASE of the original Priority Override button. Here is a sample BUTTON_EVENT to accomplish this:
BUTTON_EVENT[dvTPStation1,27] // New unused channel code on panel.
{
PUSH:
{
[dvTPStation1,27] = ![dvTPStation1,27] // Toggles the state of the button.
IF([dvTPStation1,27])
{
DO_PUSH_TIMED (dvTPStation1,7,DO_PUSH_TIMED_INFINITE)
}
ELSE
{
DO_RELEASE (dvTPStation1,7)
}
}
}