rusEFI console does not stay alive #3912

test infrastructure progress
This commit is contained in:
rusefillc 2022-02-11 09:31:16 -05:00
parent 6e047cce50
commit cb9625b254
1 changed files with 6 additions and 1 deletions

View File

@ -12,10 +12,15 @@ public class SerialSandbox {
public static void main(String[] args) {
BinaryProtocol.tsOutputSize = 100;
long startTime = System.currentTimeMillis();
String port = PortDetector.autoDetectSerial(callbackContext -> null).getSerialPort();
System.out.println("Serial detected on " + port);
HeartBeatListeners.INSTANCE.addListener(() -> System.out.println(new Date() + ": onDataArrival"));
HeartBeatListeners.INSTANCE.addListener(() -> {
int seconds = (int) ((System.currentTimeMillis() - startTime) / 1000);
System.out.println(new Date() + ": onDataArrival alive for " + seconds + " second(s)");
});
LinkManager linkManager = new LinkManager()
.setNeedPullText(false)