From 35a588fd82cb0f0fc4420319b96b7dc7cd9a9972 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 15 Apr 2021 16:52:33 -0400 Subject: [PATCH] probably very minor bugfix? --- java_console/ui/src/main/java/com/rusefi/SerialPortScanner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java_console/ui/src/main/java/com/rusefi/SerialPortScanner.java b/java_console/ui/src/main/java/com/rusefi/SerialPortScanner.java index 41f77cbe2c..ef62ba0400 100644 --- a/java_console/ui/src/main/java/com/rusefi/SerialPortScanner.java +++ b/java_console/ui/src/main/java/com/rusefi/SerialPortScanner.java @@ -32,7 +32,7 @@ public enum SerialPortScanner { void findAllAvailablePorts() { List ports = new ArrayList<>(); String[] serialPorts = LinkManager.getCommPorts(); - if (serialPorts.length > 0 || serialPorts.length < 15) + if (serialPorts.length > 0 && serialPorts.length < 15) ports.add(AUTO_SERIAL); ports.addAll(Arrays.asList(serialPorts)); ports.addAll(TcpConnector.getAvailablePorts());