diff --git a/editor/deploy.ts b/editor/deploy.ts index 16f212be..3a4e24f4 100644 --- a/editor/deploy.ts +++ b/editor/deploy.ts @@ -59,8 +59,8 @@ class WebSerialPackageIO implements pxt.HF2.PacketIO { let io = WebSerialPackageIO.portIos.filter(i => i.port == port)[0]; if (!io) { const options: SerialOptions = { - baudrate: 460800, - buffersize: 4096 + baudRate: 460800, + bufferSize: 4096 }; io = new WebSerialPackageIO(port, options); WebSerialPackageIO.portIos.push(io); diff --git a/package.json b/package.json index dd7d5a7a..9a0aa71b 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ ], "devDependencies": { "@types/bluebird": "2.0.33", - "@types/dom-serial": "0.1.0", + "@types/dom-serial": "^1.0.0", "@types/jquery": "3.5.1", "@types/marked": "0.3.0", "@types/node": "8.0.53",