Avoid to ask a serial port when an IP is selected
@@ -182,12 +182,15 @@ class ProjectCheck(QuickMenu):
be loaded in the port_id object, if not, it will show the
quick panel to select the port
"""
+ from re import search
+
self.port_id = self.get_serial_port()
ports_list = self.get_ports_list()
port_ready = [port[1] for port in ports_list if self.port_id == port[1]]
+ ip_device = search(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$", self.port_id)
- if(not port_ready):
+ if(not port_ready and ip_device is None):
QuickMenu().quick_serial_ports()
self.port_id = None
