Show "no boards found" combo item, even if no ports are found
This commit is contained in:
parent
a26852bf14
commit
1e46161c6a
@ -17,11 +17,11 @@ class PortDetectThread(QuickThread):
|
||||
def target(self):
|
||||
"""Checks list of available ports and emits signal when necessary"""
|
||||
|
||||
ports = []
|
||||
ports = None
|
||||
while True:
|
||||
new_ports = serial.tools.list_ports.comports()
|
||||
|
||||
if [p.name for p in ports] != [p.name for p in new_ports]:
|
||||
if ports is None or [p.name for p in ports] != [p.name for p in new_ports]:
|
||||
self.portsUpdate.emit(new_ports)
|
||||
|
||||
time.sleep(self.interval)
|
||||
|
Loading…
x
Reference in New Issue
Block a user