USB_Demo: Use ts_USB_claim_interface() rather than open-coding it

This commit is contained in:
Harald Welte 2019-01-30 21:58:58 +01:00
parent 03ce3a894b
commit dd9ab09c8b
1 changed files with 1 additions and 6 deletions

View File

@ -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); }
}