From 22ab133c1bc01b8a7bc5e9fbeb61d5f82645fae0 Mon Sep 17 00:00:00 2001 From: Fang Lu Date: Sun, 21 Jan 2024 05:52:50 +0800 Subject: [PATCH] Update webhid.html --- extras/webhid.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/webhid.html b/extras/webhid.html index e2c336a..e4c8f24 100644 --- a/extras/webhid.html +++ b/extras/webhid.html @@ -194,7 +194,7 @@

Feature report

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;