wait_on_event: create WaitResponse object with correct event_type
wait_on_event: create WaitResponse object with correct event_type

If wait_on_event is called with capture_timeout=True and a timeout occurs we try to create a WaitResponse object with 0 as the event type. This will fail, as 0 is not part of the Enum. Create the object with the input event type instead.
MatthieuDartiailh/pyvisa,hgrecco/pyvisa,pyvisa/pyvisa