mirror of https://github.com/rusefi/rusefi.git
13 lines
345 B
Java
13 lines
345 B
Java
package com.rusefi.autodetect;
|
|
|
|
public class PortDetectorSandbox {
|
|
public static void main(String[] args) throws InterruptedException {
|
|
while (true) {
|
|
String port = PortDetector.autoDetectSerial(null).getSerialPort();
|
|
System.out.println("Detected " + port);
|
|
|
|
Thread.sleep(1000);
|
|
}
|
|
}
|
|
}
|