Add additional cases to the arduino filter when looking for devices to connect with.
This commit is contained in:
parent
c93413bae4
commit
fcc4da3672
|
@ -147,6 +147,10 @@ arduino.enumerate = async function () {
|
||||||
matches.push(port.comName)
|
matches.push(port.comName)
|
||||||
} else if ((port.manufacturer + '').toLowerCase().indexOf('arduino') !== -1) {
|
} else if ((port.manufacturer + '').toLowerCase().indexOf('arduino') !== -1) {
|
||||||
matches.push(port.comName)
|
matches.push(port.comName)
|
||||||
|
} else if ((port.comName + '').toLowerCase().indexOf('usbserial') !== -1) {
|
||||||
|
matches.push(port.comName)
|
||||||
|
} else if ((port.comName + '').toLowerCase().indexOf('usbmodem') !== -1) {
|
||||||
|
matches.push(port.comName)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (matches.length === 0) {
|
if (matches.length === 0) {
|
||||||
|
|
Loading…
Reference in New Issue