We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SerialPort
1 parent e11047f commit eeb7355Copy full SHA for eeb7355
examples/device/webusb_serial/website/serial.js
@@ -83,8 +83,7 @@ class SerialPort {
83
/// Send data to port
84
send(data) {
85
if (!this.writer) throw new Error('Port not connected');
86
- const encoder = new TextEncoder();
87
- return this.writer.write(encoder.encode(data));
+ return this.writer.write(data);
88
}
89
90
async forgetDevice() {}
0 commit comments