diff --git a/lglaf.py b/lglaf.py index 3bef64d..f189c62 100755 --- a/lglaf.py +++ b/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('ANDNETDIAG1'): + if name.startswith(r'\DEVICE\LG') and (name.endswith('G1') or name.endwith('G2')): return value except OSError: pass return None