But in altered code the message is sent many times without the button being pressed
Maybe the input is floating.
You should really only send a message when the switch becomes pressed not while it is pressed.
But in altered code the message is sent many times without the button being pressed
Maybe the input is floating.
You should really only send a message when the switch becomes pressed not while it is pressed.