display /dev/ttyACM0, /dev/ttyS* and /dev/rfcomm* serial ports

add possibility to communicate with arduino boards that apeears as ttyACM* on linux,
witha boards connected via bluetooth (rfcomm* on linux) and with boards connected
via rs232 (ttyS*).
This commit is contained in:
Dmitry Mikhirev 2013-03-06 20:12:18 +04:00
parent 1f57d2fd5b
commit 01d2598f32

View file

@ -337,7 +337,10 @@ error:
}
int isSerialPortDev(char *s) {
return isPrefix("ttyusb", s);
return isPrefix("ttyusb", s) ||
isPrefix("ttys", s) ||
isPrefix("ttyacm", s) ||
isPrefix("rfcomm", s);
}
int isPrefix(char *prefix, char *s) {