Merge pull request #1 from EMHacker-alt/master

Update webserial.js
This commit is contained in:
Melissa LeBlanc-Williams 2021-10-27 08:11:18 -07:00 committed by GitHub
commit 347fc6dd89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ WebSerial.prototype = {
// - Request a port and open a connection.
this.port = await navigator.serial.requestPort();
// - Wait for the port to open.toggleUIConnected
await this.port.open({ baudrate: this.baudrate });
await this.port.open({ baudRate: this.baudrate });
const encoder = new TextEncoderStream();
this.outputDone = encoder.readable.pipeTo(this.port.writable);