Skip to content

Commit

Permalink
Added X-Input VID/PIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimpleControllers committed Nov 12, 2022
1 parent 2db33a8 commit ebbe268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serial.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { ReadlineParser } = require('@serialport/parser-readline')

function serialCon(){
SerialPort.list().then(ports => {
var port = ports.find(port => (/2341/.test(port.vendorId) && /8036/.test(port.productId)) || (/2E8A/.test(port.vendorId) && /102F/.test(port.productId)))
var port = ports.find(port => (/2341/.test(port.vendorId) && /8036/.test(port.productId)) || (/2E8A/.test(port.vendorId) && /102F/.test(port.productId)) || (/045E/.test(port.vendorId) && /02A1/.test(port.productId)))

if (!port) {
console.log("B0XX Not Found")
Expand Down

0 comments on commit ebbe268

Please sign in to comment.