summaryrefslogtreecommitdiff
path: root/libraries/rxtx/ttyACM_port.patch
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2011-07-19 21:05:22 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-07-21 22:52:13 -0500
commit7e73a9b6ba4c5c5c0801769a20a7723254318cb8 (patch)
treef2d55859f0c865e16f9354824237e7058a5a4e71 /libraries/rxtx/ttyACM_port.patch
parent7bd2bdca9849bfe950f211b53bb36c2307dbca10 (diff)
downloadslackbuilds-7e73a9b6ba4c5c5c0801769a20a7723254318cb8.tar.gz
libraries/rxtx: Updated for version 2.2pre2.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/rxtx/ttyACM_port.patch')
-rw-r--r--libraries/rxtx/ttyACM_port.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/libraries/rxtx/ttyACM_port.patch b/libraries/rxtx/ttyACM_port.patch
new file mode 100644
index 0000000000..da133c935d
--- /dev/null
+++ b/libraries/rxtx/ttyACM_port.patch
@@ -0,0 +1,28 @@
+Description: Allows for the enumeration of many additional ports, including ttyACM for Arduino Unos
+Author: Scott Howard <showard314@gmail.com>
+
+Index: rxtx/src/gnu/io/RXTXCommDriver.java
+===================================================================
+--- rxtx.orig/src/gnu/io/RXTXCommDriver.java 2010-10-04 23:14:47.236148507 -0400
++++ rxtx/src/gnu/io/RXTXCommDriver.java 2010-10-04 23:18:56.976108303 -0400
+@@ -574,20 +574,7 @@
+ if(osName.equals("Linux"))
+ {
+ String[] Temp = {
+- "ttyS", // linux Serial Ports
+ "ttySA", // for the IPAQs
+- "ttyUSB", // for USB frobs
+- "rfcomm", // bluetooth serial device
+- "ttyircomm", // linux IrCommdevices (IrDA serial emu)
+- };
+- CandidatePortPrefixes=Temp;
+- }
+- else if(osName.equals("Linux-all-ports"))
+- {
+- /* if you want to enumerate all ports ~5000
+- possible, then replace the above with this
+- */
+- String[] Temp = {
+ "comx", // linux COMMX synchronous serial card
+ "holter", // custom card for heart monitoring
+ "modem", // linux symbolic link to modem.