add eslint + fix lint errors
This commit is contained in:
parent
e1a532500e
commit
e2898ee5bf
19 changed files with 938 additions and 92 deletions
|
|
@ -20,6 +20,7 @@ export async function getWriter(br = 38400) {
|
|||
if ('serial' in navigator) {
|
||||
const port = await navigator.serial.requestPort();
|
||||
await port.open({ baudRate: br });
|
||||
// eslint-disable-next-line no-undef
|
||||
const textEncoder = new TextEncoderStream();
|
||||
const writableStreamClosed = textEncoder.readable.pipeTo(port.writable);
|
||||
const writer = textEncoder.writable.getWriter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue