Skip to content

Commit

Permalink
fix: playwright serialport !== SerialPort
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Aug 19, 2024
1 parent 073514a commit db831bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/state/workspace.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function createPortState() {
}

function getLeaphyPort(port: SerialPort | USBDevice): LeaphyPort {
if (port instanceof SerialPort) return port;
if ("readable" in port) return port;

if (port?.vendorId === 1027) return new MockedFTDISerialPort(port);

Expand Down

0 comments on commit db831bb

Please sign in to comment.