From 2a2a77e64de7496fb2573505da9409fa97d8e1bf Mon Sep 17 00:00:00 2001 From: sverben <59171289+sverben@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:28:05 +0100 Subject: [PATCH] fix: increase buffer size to potentially limit the occurences of uploads getting stuck --- libserial/LibSerial.c | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libserial/LibSerial.c b/libserial/LibSerial.c index fbd76157f..f58465de3 100644 --- a/libserial/LibSerial.c +++ b/libserial/LibSerial.c @@ -132,8 +132,8 @@ EM_ASYNC_JS(void, open_serial_port, (int baudRateInt), { } } - const writeBuffer = new SharedArrayBuffer(4096); - const readBuffer = new SharedArrayBuffer(4096); + const writeBuffer = new SharedArrayBuffer(64 * 1024); + const readBuffer = new SharedArrayBuffer(64 * 1024); worker.postMessage({ type: 'init', options: serialOpts, diff --git a/package.json b/package.json index a207fc716..72d672cad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leaphy-robotics/avrdude-webassembly", - "version": "1.7.0", + "version": "1.7.1", "description": "An port of avrdude to the browser using WebAssembly", "type": "module", "scripts": {