Update: 更新web ampy

This commit is contained in:
王立帮
2025-03-21 17:10:28 +08:00
parent 449ba1f793
commit 883dbb336d
6 changed files with 73 additions and 96 deletions

View File

@@ -121,7 +121,7 @@ class WebSerialPort extends Serial {
try {
while (true) {
const { value, done } = await this.#reader_.read();
value && this.onBuffer(value);
value !== undefined && this.onBuffer(value);
if (done) {
break;
}