Skip to content

Commit

Permalink
fix: define readable/writable only when open (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben authored May 3, 2024
1 parent 1f98a40 commit 24e1a74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leaphy-robotics/webusb-ftdi",
"version": "1.0.0",
"version": "1.0.1",
"description": "FTDI Driver for WebUSB",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
12 changes: 0 additions & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ class DriverFTDI {
dataBits: 8
}
}

this.readable = new ReadableStream({
start: (controller) => {
this._internal.controller = controller
}
})

this.writable = new WritableStream({
write: async (chunk) => {
await this._send(chunk)
}
})
}

async open(options: SerialOptions) {
Expand Down

0 comments on commit 24e1a74

Please sign in to comment.