mirror of
https://github.com/Lekensteyn/lglaf.git
synced 2024-11-23 15:48:17 -05:00
Update lglaf.py
This commit is contained in:
parent
a52e4f00cd
commit
256b4cf0d2
1 changed files with 1 additions and 1 deletions
2
lglaf.py
2
lglaf.py
|
@ -396,7 +396,7 @@ def detect_serial_path():
|
|||
name, value, value_type = winreg.EnumValue(key, i)
|
||||
# match both \Device\LGANDNETDIAG1 and \Device\LGVZANDNETDIAG1
|
||||
name = name.upper()
|
||||
if name.startswith(r'\DEVICE\LG') and (name.endswith('G1') or name.endwith('G2')):
|
||||
if name.startswith(r'\DEVICE\LG') and (name.endswith('G1') or name.endswith('G2')):
|
||||
return value
|
||||
except OSError: pass
|
||||
return None
|
||||
|
|
Loading…
Reference in a new issue