1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-01 03:47:23 +03:00

Can now detect devices with serial number in the port number on OSX - see: https://github.com/arduino/Arduino/issues/223

It now also parses PID and VID values with text afterwards properly
This commit is contained in:
Kristian Lauszus
2013-11-11 04:42:29 +01:00
parent 0d8e12dbe0
commit 7706fcfdde
2 changed files with 23 additions and 7 deletions

View File

@ -43,5 +43,7 @@ public class SystemProfilerParserTest {
assertEquals("0X2341_0X8036", new SystemProfilerParser().extractVIDAndPID(output, "/dev/cu.usbmodem24131"));
assertEquals("0X2341_0X8036", new SystemProfilerParser().extractVIDAndPID(output, "/dev/tty.usbmodem24131"));
assertEquals("0X0403_0X6015", new SystemProfilerParser().extractVIDAndPID(output, "/dev/cu.usbserial-DN0031EV"));
assertEquals("0X0403_0X6015", new SystemProfilerParser().extractVIDAndPID(output, "/dev/tty.usbserial-DN0031EV"));
}
}