Skip to content

Commit

Permalink
Update webhid.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ilufang authored Jan 20, 2024
1 parent 9352ef9 commit 22ab133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/webhid.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ <h4>Feature report</h4>

function addReportId() {
var reportid = document.querySelector("#addreportid input").value;
reportid = parseInt(reportId);
reportid = parseInt(reportid);
if (isNaN(reportid) || reportid < 0 || reportid > 255) {
alert("Invalid report ID");
return;
Expand Down

0 comments on commit 22ab133

Please sign in to comment.