PUSH BUTTON_EVENT being called twice
tomk
Junior Member
Hi all, I am quite stumped on this one.
I have an AMX touch panel with some buttons. When I push and release I see the following in diagnostics:
I have the following handler code:
This gives me the output:
Does anybody know why the event handler is being called twice?! Thanks in advance for any ideas!
I have an AMX touch panel with some buttons. When I push and release I see the following in diagnostics:
Line 36 (13:45:48):: Input Status:Pushed [10002:1:1] - Channel 1125 Line 37 (13:45:48):: Input Status:Released [10002:1:1] - Channel 1125
I have the following handler code:
BUTTON_EVENT[tpArray,1125]
BUTTON_EVENT[tpArray,1145]
BUTTON_EVENT[tpArray,1165]
BUTTON_EVENT[tpArray,1185]
{
PUSH: {
STACK_VAR nZone
nZone = (BUTTON.INPUT.CHANNEL - 1100) /20
send_string 0,"'Received button press on channel ',itoa(button.input.channel),' zone ',itoa(nZone)"
// ...
}
}
This gives me the output:
Line 393 (13:45:48):: Received button press on channel 1125 zone 1 Line 394 (13:45:48):: Received button press on channel 1125 zone 1
Does anybody know why the event handler is being called twice?! Thanks in advance for any ideas!
Comments
-
what's in tpArray?
Is the input device declared twice?
a get_last(tpArray) in your debug string might help figure out what's going on
-
what's in tpArray?
Is the input device declared twice?
It sure is. That's kind of embarrassing. Thanks!
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums