Choose a larger buffer.

This commit is contained in:
raldone01
2025-07-05 19:42:44 +02:00
parent d3f7dff180
commit eef5b92c9b

View File

@@ -174,7 +174,7 @@ class WebUsbSerialPort {
async _readLoop() {
while (this.isConnected) {
try {
const result = await this.device.transferIn(this.endpointIn, 64);
const result = await this.device.transferIn(this.endpointIn, 16384);
if (result.data && this.onReceive) {
this.onReceive(result.data);
}