未验证 提交 852e0cbe 编写于 作者: O openharmony_ci 提交者: Gitee

!18716 【轻量级 PR】:update zh-cn/application-dev/device/usb-guidelines.md.

Merge pull request !18716 from 葛亚芳/N/A
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册