Skip to content

自定义数据处理异常 #10

Description

@FeiH36

在xBlufi-wx-impl.js中,下面处理:
case 19: //自定义数据
let customData = [];
for (var i = 0; i <= result.length; i++) {
customData.push(String.fromCharCode(parseInt(result[i], 16)));
}

造成长度加1,最后一个数据无效,应该对应为:
for (var i = 0; i < result.length; i++) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions