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.
1 parent fdf65fd commit 0a46418Copy full SHA for 0a46418
src/main.ts
@@ -324,11 +324,10 @@ async function main() {
324
325
await client.serialMonitorListen();
326
327
- const utf8Decoder = new TextDecoder('utf-8');
328
client.listen('serial-monitor:data', (event: APIEvent<SerialMonitorDataPayload>) => {
329
let { bytes } = event.payload;
330
bytes = scenario?.processSerialBytes(bytes) ?? bytes;
331
- process.stdout.write(utf8Decoder.decode(Buffer.from(bytes)));
+ process.stdout.write(new Uint8Array(bytes));
332
333
serialLogStream?.write(Buffer.from(bytes));
334
expectEngine.feed(bytes);
0 commit comments