Windows upper cases the vendor and product id, so the filter will fail. So LOWERCASE ALL THE THINGS! Co-authored-by: Crosseye Jack <dan@crosseyejack.com>
@@ -9,7 +9,7 @@ const main = async () => {
// Implement a check for your device's vendor+product+serial
// (this is more robust than the alternative of just hardcoding a "path" like "/dev/ttyUSB0")
return (
- portInfo.vendorId === '1a86' && portInfo.productId === '7523'
+ portInfo.vendorId?.toLowerCase() === '1a86'.toLowerCase() && portInfo.productId?.toLowerCase() === '7523'.toLowerCase()
// && portInfo.serialNumber === 'DEADBEEF'
)
})