When you press the trigger, we immediately switch its state. Regardless of a response from the equipment or not. Maybe we should add an intermediate state of "waiting for confirmation of the command." In order not to speculate send the value to the bus or not. And the switch to ON only when receive feedback . If feedback is not received within a certain time - go to state 1.
Customer support service by UserEcho