Skip to content

Commit a3827ee

Browse files
committed
Hotfix: do not browse all COM ports if screen found
1 parent fb11403 commit a3827ee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/lcd/lcd_comm_rev_a.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def auto_detect_com_port():
5353
for com_port in com_ports:
5454
if com_port.serial_number == "USB35INCHIPSV2":
5555
auto_com_port = com_port.device
56+
break
5657

5758
return auto_com_port
5859

library/lcd/lcd_comm_rev_b.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def auto_detect_com_port():
7272
for com_port in com_ports:
7373
if com_port.serial_number == "2017-2-25":
7474
auto_com_port = com_port.device
75+
break
7576

7677
return auto_com_port
7778

0 commit comments

Comments
 (0)