You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/rxtx/files/rxtx-2.1-7r2-add-ttyACM.diff

24 lines
979 B

support /dev/ttyACMx devices natively
upstream bug report pending: http://bugzilla.qbang.org/show_bug.cgi?id=139
http://bugs.gentoo.org/show_bug.cgi?id=301126
Signed-off: Thilo Bangert <bangert@gentoo.org>
--- src/RXTXCommDriver.java.orig 2010-01-15 17:30:46.000000000 +0100
+++ src/RXTXCommDriver.java 2010-01-15 17:31:56.000000000 +0100
@@ -519,6 +519,7 @@
if(osName.equals("Linux"))
{
String[] Temp = {
+ "ttyACM", // linux USB Modems
"ttyS", // linux Serial Ports
"ttySA", // for the IPAQs
"ttyUSB" // for USB frobs
@@ -535,6 +536,7 @@
"holter", // custom card for heart monitoring
"modem", // linux symbolic link to modem.
"rfcomm", // bluetooth serial device
+ "ttyACM", // linux USB Modems
"ttyircomm", // linux IrCommdevices (IrDA serial emu)
"ttycosa0c", // linux COSA/SRP synchronous serial card
"ttycosa1c", // linux COSA/SRP synchronous serial card