Skip to content

Commit

Permalink
Add support for MOXA ports on Linux
Browse files Browse the repository at this point in the history
Allows matching of MOXA device port names in Linux
Related: #179
  • Loading branch information
andrey-patin-1979 authored Dec 28, 2024
1 parent 8dd99a4 commit defbff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/jssc/SerialPortList.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private SerialPortList() {}
serialInterface = new SerialNativeInterface();
switch (SerialNativeInterface.getOsType()) {
case SerialNativeInterface.OS_LINUX: {
PORTNAMES_REGEXP = Pattern.compile("(ttyS|ttyUSB|ttyACM|ttyAMA|rfcomm|ttyO)[0-9]{1,3}");
PORTNAMES_REGEXP = Pattern.compile("(ttyS|ttyUSB|ttyACM|ttyAMA|rfcomm|ttyO|ttyM|ttyMXUSB|ttyMUE)[0-9]{1,3}");
PORTNAMES_PATH = "/dev/";
break;
}
Expand Down

0 comments on commit defbff6

Please sign in to comment.