WiFi window should be able to use CP2102 usb to uart too

This commit is contained in:
Eiren Rain committed 2021-07-21 22:15:03 +03:00
1 parent 22d4196bed
commit 0f360cf892
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ public class WiFiWindow extends JFrame {
SerialPort[] ports = SerialPort.getCommPorts();
for(SerialPort port : ports) {
if(port.getDescriptivePortName().contains("CH340")) {
if(port.getDescriptivePortName().contains("CH340") || port.getDescriptivePortName().toLowerCase().contains("cp21")) {
trackerPort = port;
break;
}