I am using Panel_Touch Action 1 to fire a sub that sends a message via bluetooth. A response is received via bluetooth within about 0.2 seconds. The AStream_NewData sub stores the response into a SQL database. This all works fine.
If I touch the panel a second time (ie a double tap) then Action 0 ALWAYS fires but the Action 1 fires intermittently. It seems to depend on the timing of the response from Bluetooth. This suggests that Action 1 only fires if the processor is not busy doing something else?
I have declared the sub Panel_Touch as Boolean and return True at the end of the sub.
Any ideas?
If I touch the panel a second time (ie a double tap) then Action 0 ALWAYS fires but the Action 1 fires intermittently. It seems to depend on the timing of the response from Bluetooth. This suggests that Action 1 only fires if the processor is not busy doing something else?
I have declared the sub Panel_Touch as Boolean and return True at the end of the sub.
Any ideas?