diff --git a/java_console/ui/src/main/java/com/rusefi/maintenance/ProgramSelector.java b/java_console/ui/src/main/java/com/rusefi/maintenance/ProgramSelector.java index 17c9bd915e..48c1ac4823 100644 --- a/java_console/ui/src/main/java/com/rusefi/maintenance/ProgramSelector.java +++ b/java_console/ui/src/main/java/com/rusefi/maintenance/ProgramSelector.java @@ -197,15 +197,11 @@ public class ProgramSelector { final UpdateOperationCallbacks callbacks ) { return waitForPredicate( - "Waiting for ECU to reboot to OpenBlt...", + String.format("Waiting for ECU on port %s to reboot to OpenBlt...", ecuPort), () -> { - if (PortDetector.AUTO.equals(ecuPort)) { - return true; - } else { - final Set currentPorts = LinkManager.getCommPorts(); - log.info("currentPorts: [" + String.join(",", currentPorts) + "]"); - return !LinkManager.getCommPorts().contains(ecuPort); - } + final Set currentPorts = LinkManager.getCommPorts(); + log.info("currentPorts: [" + String.join(",", currentPorts) + "]"); + return !LinkManager.getCommPorts().contains(ecuPort); }, callbacks );