rusefi/java_console/ui/src/main/java/com/rusefi/autodetect/PortDetectorSandbox.java

13 lines
345 B
Java
Raw Normal View History

2020-06-07 09:27:21 -07:00
package com.rusefi.autodetect;
public class PortDetectorSandbox {
public static void main(String[] args) throws InterruptedException {
2020-06-07 09:27:21 -07:00
while (true) {
String port = PortDetector.autoDetectSerial(null).getSerialPort();
2020-06-07 09:27:21 -07:00
System.out.println("Detected " + port);
Thread.sleep(1000);
2020-06-07 09:27:21 -07:00
}
}
}