diff options
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/webusb_serial/website/serial.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/device/webusb_serial/website/serial.js b/examples/device/webusb_serial/website/serial.js index 304792e05..18bb8a717 100644 --- a/examples/device/webusb_serial/website/serial.js +++ b/examples/device/webusb_serial/website/serial.js @@ -83,8 +83,7 @@ class SerialPort { /// Send data to port send(data) { if (!this.writer) throw new Error('Port not connected'); - const encoder = new TextEncoder(); - return this.writer.write(encoder.encode(data)); + return this.writer.write(data); } async forgetDevice() {} |
