Skip to content

Commit

Permalink
filter devices by usb vendor id 0x2E8A RPi
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanamaral committed Jan 19, 2023
1 parent 8a5e407 commit 4ce6b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,8 @@ async function connectSerial() {
message.innerHTML = "Connecting to your TurtlPass device...";

try {
const rpiPico = {
usbVendorId: 0x2E8A,
usbProductId: 0x800A
};
port = await navigator.serial.requestPort({
filters: [rpiPico]
filters: [{ usbVendorId: 0x2E8A }] // Raspberry Pi
});
await port.open({
baudRate: 115200
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name":"TurtlPass",
"short_name": "turtlpass",
"description":"This extension makes a hash of the user inputs and sends it to the device via USB to generate a password for it.",
"version":"1.0.1",
"version":"1.1.0",
"author":"TurtlPass",
"homepage_url":"https://github.com/TurtlPass/turtlpass-chrome-extension",
"permissions":[
Expand Down

0 comments on commit 4ce6b85

Please sign in to comment.