Remove double text encoder in SerialPort.

This commit is contained in:
raldone01
2025-07-05 19:42:44 +02:00
parent e11047f003
commit eeb73550ef

View File

@@ -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() {}