Fix matching EDIDs with wildcards

Fixes #322
This commit is contained in:
Phillip Berndt 2023-01-23 11:17:09 +01:00
parent 0ca5ca9d0a
commit 4fcc1c277f
2 changed files with 5 additions and 0 deletions

View File

@ -257,6 +257,9 @@ options nvidia_drm modeset=1
## Changelog ## Changelog
**autorandr 1.13.2 (dev)**
* *2023-01-23* Fix wildcard use in EDIDs (see #322)
**autorandr 1.13.1** **autorandr 1.13.1**
* *2023-01-16* Fix bug with Version comparison * *2023-01-16* Fix bug with Version comparison

View File

@ -359,6 +359,8 @@ class XrandrOutput(object):
if self.edid: if self.edid:
if self.EDID_UNAVAILABLE in self.edid: if self.EDID_UNAVAILABLE in self.edid:
return return
if "*" in self.edid:
return
# Thx to pyedid project, the following code was # Thx to pyedid project, the following code was
# copied (and modified) from pyedid/__init__py:21 [parse_edid()] # copied (and modified) from pyedid/__init__py:21 [parse_edid()]
raw = bytes.fromhex(self.edid) raw = bytes.fromhex(self.edid)