From 07d838b44298386679f76e78127fdb71c39372df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Fri, 26 May 2023 02:03:15 +0000 Subject: [PATCH] update zh-cn/application-dev/device/usb-guidelines.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 葛亚芳 --- zh-cn/application-dev/device/usb-guidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/device/usb-guidelines.md b/zh-cn/application-dev/device/usb-guidelines.md index 6c412ce6a9..02d8a4ba56 100644 --- a/zh-cn/application-dev/device/usb-guidelines.md +++ b/zh-cn/application-dev/device/usb-guidelines.md @@ -135,7 +135,7 @@ USB设备可作为Host设备连接Device设备进行数据传输。开发示例 let dataUint8Array = new Uint8Array(1024); usb.bulkTransfer(pipe, inEndpoint, dataUint8Array, 15000).then(dataLength => { if (dataLength >= 0) { - console.info("usb readData buffer : " + resultStr); + console.info("usb readData result Length : " + dataLength); } else { console.info("usb readData failed : " + dataLength); } -- GitLab