Update lglaf.py

This commit is contained in:
Jeovane Santos 2020-04-19 16:08:22 -03:00 committed by GitHub
parent a52e4f00cd
commit 256b4cf0d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -396,7 +396,7 @@ def detect_serial_path():
name, value, value_type = winreg.EnumValue(key, i) name, value, value_type = winreg.EnumValue(key, i)
# match both \Device\LGANDNETDIAG1 and \Device\LGVZANDNETDIAG1 # match both \Device\LGANDNETDIAG1 and \Device\LGVZANDNETDIAG1
name = name.upper() 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 return value
except OSError: pass except OSError: pass
return None return None