Add additional cases to the arduino filter when looking for devices to connect with.

This commit is contained in:
mmcwilliams 2019-03-01 18:01:16 -05:00
parent c93413bae4
commit fcc4da3672
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ arduino.enumerate = async function () {
matches.push(port.comName)
} else if ((port.manufacturer + '').toLowerCase().indexOf('arduino') !== -1) {
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) {