mirror of
https://github.com/hathach/tinyusb.git
synced 2025-10-30 04:03:07 +00:00
Remove double text encoder in SerialPort.
This commit is contained in:
parent
e11047f003
commit
eeb73550ef
@ -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() {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user