| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -186,8 +186,6 @@ public boolean getDSR() { | |||
| 186 | 186 | ||
| 187 | 187 | ||
| 188 | 188 | public static Map<String, String> getProperties(String portName) { | |
| 189 | - //SerialPortList list = new SerialPortList(); | ||
| 190 | - //return list.getPortProperties(portName); | ||
| 191 | 189 | return SerialPortList.getPortProperties(portName); | |
| 192 | 190 | } | |
| 193 | 191 | ||
@@ -214,8 +212,6 @@ public char lastChar() { | |||
| 214 | 212 | public static String[] list() { | |
| 215 | 213 | // returns list sorted alphabetically, thus cu.* comes before tty.* | |
| 216 | 214 | // this was different with RXTX | |
| 217 | - //SerialPortList list = new SerialPortList(); | ||
| 218 | - //return list.getPortNames(); | ||
| 219 | 215 | return SerialPortList.getPortNames(); | |
| 220 | 216 | } | |
| 221 | 217 | ||
@@ -457,4 +453,4 @@ public void write(String src) { | |||
| 457 | 453 | throw new RuntimeException("Error writing to serial port " + e.getPortName() + ": " + e.getExceptionType()); | |
| 458 | 454 | } | |
| 459 | 455 | } | |
| 460 | - } | ||
| 456 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments