From cf782261a4dfd90d40ded96a05eced70212ac98b Mon Sep 17 00:00:00 2001 From: shawn_he Date: Tue, 29 Mar 2022 19:50:07 +0800 Subject: [PATCH] update docs Signed-off-by: shawn_he --- en/application-dev/device/usb-guidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/application-dev/device/usb-guidelines.md b/en/application-dev/device/usb-guidelines.md index 1c7aa85a9c..71c6d0b796 100644 --- a/en/application-dev/device/usb-guidelines.md +++ b/en/application-dev/device/usb-guidelines.md @@ -170,9 +170,9 @@ You can set a USB device as a host to connect to a device for data transfer. The var pipe = usb.connectDevice(deviceList[0]); /* Claim the corresponding interface from deviceList. - interface must be one present in the device configuration. + interface1 must be one present in the device configuration. */ - usb.claimInterface(pipe , interface, true); + usb.claimInterface(pipe , interface1, true); ``` 4. Perform data transfer. -- GitLab