|
@@ -9,7 +9,7 @@ const main = async () => {
|
|
|
// Implement a check for your device's vendor+product+serial
|
|
// 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")
|
|
// (this is more robust than the alternative of just hardcoding a "path" like "/dev/ttyUSB0")
|
|
|
return (
|
|
return (
|
|
|
- portInfo.vendorId === '1a86' && portInfo.productId === '7523'
|
|
|
|
|
|
|
+ portInfo.vendorId?.toLowerCase() === '1a86'.toLowerCase() && portInfo.productId?.toLowerCase() === '7523'.toLowerCase()
|
|
|
// && portInfo.serialNumber === 'DEADBEEF'
|
|
// && portInfo.serialNumber === 'DEADBEEF'
|
|
|
)
|
|
)
|
|
|
})
|
|
})
|