From 01d2598f32f705d002f769d0d31fa8d8b17d5355 Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Wed, 6 Mar 2013 20:12:18 +0400 Subject: [PATCH] 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*). --- src/plugins/scratch/unixSeriaPort2Ops.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/scratch/unixSeriaPort2Ops.c b/src/plugins/scratch/unixSeriaPort2Ops.c index 35a514b..3f6cf9b 100644 --- a/src/plugins/scratch/unixSeriaPort2Ops.c +++ b/src/plugins/scratch/unixSeriaPort2Ops.c @@ -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) {