1.1K Star 6.3K Fork 5.3K

OpenHarmony / docs

 / 详情

【OpenHarmony 4.0.7.2】【USB服务】【rk3568】【ToD】【必现】USB服务开发指导中示例代码错误

已完成
缺陷
创建于  
2023-05-26 11:10

【模块名_概率】简要描述:
【OpenHarmony 4.0.7.2】【USB服务】【ToC】【必现】 USB服务开发指导中示例代码错误
软件版本信息或tag节点 OpenHarmony 4.0.7.2
【预置条件】:
【测试步骤】:
1.检查USB服务开发指导示例代码
【预期结果】:
1.示例代码正确
usb.bulkTransfer(pipe, inEndpoint, dataUint8Array, 15000).then(dataLength => {
if (dataLength >= 0) {
console.info("usb readData result Length : " + dataLength);
} else {
console.info("usb readData failed : " + dataLength);**
}
}).catch(error => {
console.info("usb readData error : " + JSON.stringify(error));
});
【实际结果】:
1.示例代码有误
usb.bulkTransfer(pipe, inEndpoint, dataUint8Array, 15000).then(dataLength => {
if (dataLength >= 0) {
console.info("usb readData buffer : " + resultStr);
} else {
console.info("usb readData failed : " + dataLength);
}
}).catch(error => {
console.info("usb readData error : " + JSON.stringify(error));
});
【恢复手段】:
整改示例代码
【出现概率】:必现
【定位信息】:
Log、截图、多媒体文件等,所有和问题有关的信息:

评论 (1)

dongshaomin 创建了缺陷
dongshaomin 修改了描述
Public_OpenHarmonyTest 负责人设置为葛亚芳
Public_OpenHarmonyTest 关联项目设置为OpenHarmony
Public_OpenHarmonyTest 优先级设置为次要
Public_OpenHarmonyTest 添加了
 
Integration_Test
标签
Public_OpenHarmonyTest 关联分支设置为master
展开全部操作日志
葛亚芳 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
9169901 ge yafang 1651731994
其他
1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs

搜索帮助