Skip to content

Commit

Permalink
Fix bug, compare against enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Ruiz committed Nov 10, 2021
1 parent a4b0262 commit e2f4455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynq_composable/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __init__(self, ol: Overlay, source: VSource = VSource.HDMI) -> None:
self._thread = threading.Lock()
self._running = None

if self._source == 'HDMI':
if self._source == VSource.HDMI:
self._source_in = ol.video.hdmi_in
self._source_in.frontend.set_phy(ol.video.phy.vid_phy_controller)
else:
Expand All @@ -171,7 +171,7 @@ def __init__(self, ol: Overlay, source: VSource = VSource.HDMI) -> None:
def start(self):
"""Configure and start the HDMI"""
if not self._started:
if self._source == 'HDMI':
if self._source == VSource.HDMI:
self._source_in.configure()
videomode = self._source_in.mode
else:
Expand Down

0 comments on commit e2f4455

Please sign in to comment.