From dd9ab09c8b25abeba9477dbcfe6dae937ba0dc67 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 30 Jan 2019 21:58:58 +0100 Subject: [PATCH] USB_Demo: Use ts_USB_claim_interface() rather than open-coding it --- demo/USB_Demo.ttcn | 7 +------ 1 file changed, 1 insertion(+), 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); } }