(String id, int baud)
| 387 | } |
| 388 | |
| 389 | private synchronized AndroidPort connect(String id, int baud) |
| 390 | throws IOException |
| 391 | { |
| 392 | UsbDeviceInterface deviface = getAvailable(id); |
| 393 | if (deviface == null) |
| 394 | throw new IOException("USB serial device not found"); |
| 395 | |
| 396 | return deviface.open(baud); |
| 397 | } |
| 398 | |
| 399 | private synchronized void broadcastDetectedDeviceInterface(UsbDeviceInterface deviface) { |
| 400 | if (detectListeners.isEmpty()) |
nothing calls this directly
no test coverage detected