diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-01-30 21:58:58 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-01-30 21:58:58 +0100 |
commit | dd9ab09c8b25abeba9477dbcfe6dae937ba0dc67 (patch) | |
tree | 8c9bb85c54294f7205881677b5b908a80bc96499 | |
parent | 03ce3a894baa4162231a9487cdcf50d8a8bcfc90 (diff) |
USB_Demo: Use ts_USB_claim_interface() rather than open-coding it
-rw-r--r-- | demo/USB_Demo.ttcn | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/demo/USB_Demo.ttcn b/demo/USB_Demo.ttcn index 54b88d9..79c7b0d 100644 --- a/demo/USB_Demo.ttcn +++ b/demo/USB_Demo.ttcn @@ -288,12 +288,7 @@ testcase TC_foobar() runs on USB_CT { g_dev_hdl, 99)); USB.receive(USB_transfer_compl:?); - var USB_claim_interface claim := { - req_hdl := 25, - device_hdl := 42, - interface := 0 - }; - USB.send(claim); + USB.send(ts_USB_claim_interface(g_dev_hdl, 0, 25)); USB.receive(USB_result:?) -> value res { log("Received ", res); } } |