Update(boards): 更新micropython microbit和mithoncc板卡
This commit is contained in:
@@ -113,12 +113,8 @@ class WebHID extends Serial {
|
||||
}
|
||||
|
||||
#addEventsListener_() {
|
||||
this.#addReadEventListener_();
|
||||
}
|
||||
|
||||
async #addReadEventListener_() {
|
||||
this.#device_.oninputreport = (event) => {
|
||||
const { data, reportId } = event;
|
||||
const { data } = event;
|
||||
const length = Math.min(data.getUint8(0) + 1, data.byteLength);
|
||||
let buffer = [];
|
||||
for (let i = 1; i < length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user