MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / closeSerial

Function closeSerial

rusense_flasher/js/flasher.js:325–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323}
324
325async function attachSerial(port) {
326 const baud = parseInt($("serial-baud-select").value, 10);
327 await port.open({ baudRate: baud });
328 serialPort = port;
329 serialWriter = port.writable.getWriter();
330 const decoder = new TextDecoderStream();
331 port.readable.pipeTo(decoder.writable).catch(() => {});
332 serialReader = decoder.readable.getReader();
333
334 (async () => {

Callers 1

flasher.jsFile · 0.70

Calls 3

cancelMethod · 0.80
$Function · 0.70
closeMethod · 0.45

Tested by

no test coverage detected