Add COM3 for windows tests

This commit is contained in:
M McWilliams 2018-01-30 04:07:52 -05:00
parent acb9846015
commit 63e081afe4
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,8 @@ mcopy.arduino = {
'/dev/tty.usbmodem1a131', '/dev/tty.usbmodem1a131',
'/dev/tty.usbserial-a900f6de', '/dev/tty.usbserial-a900f6de',
'/dev/tty.usbmodem1a141', '/dev/tty.usbmodem1a141',
'/dev/ttyACM0' '/dev/ttyACM0',
'COM3'
], ],
alias : { alias : {
@ -38,6 +39,7 @@ mcopy.arduino = {
mcopy.arduino.enumerate = function (callback) { mcopy.arduino.enumerate = function (callback) {
let matches = [] let matches = []
SerialPort.list((err, ports) => { SerialPort.list((err, ports) => {
//console.dir(ports)
ports.forEach(port => { ports.forEach(port => {
if (mcopy.arduino.known.indexOf(port.comName) !== -1) { if (mcopy.arduino.known.indexOf(port.comName) !== -1) {
matches.push(port.comName) matches.push(port.comName)