Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
SantaClaas committed Sep 15, 2023
1 parent 2b42755 commit c3438a4
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/lib/SerialPorts.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,6 @@
// TODO remove this hack to force rerender
availablePorts = availablePorts;
}
function open(port: SerialPort) {
return async () => {
console.log("Opening port", port);
await port.open({ baudRate: 9600 });
quickUpdateHack();
console.log("Port opened", port.getInfo());
};
}
function close(port: SerialPort) {
return async () => {
await port.close();
quickUpdateHack();
};
}
function openPort(port: SerialPort) {
return async (event: SubmitEvent) => {
event.preventDefault();
};
}
</script>

<main>
Expand Down

0 comments on commit c3438a4

Please sign in to comment.