summaryrefslogtreecommitdiff
path: root/py/db.py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-06 19:56:26 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-07 17:04:28 +0300
commitded84bf2620313b701af9c88b0f6c6ada2c70eaa (patch)
treefc836815746d044f46fc99dac0782e8472ac2eb3 /py/db.py
parenta688d32d209a45627da3e80128a933d70f5d48b6 (diff)
py: fix scripts when there's no current crtc
Diffstat (limited to 'py/db.py')
-rwxr-xr-xpy/db.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/db.py b/py/db.py
index 315f993..6073765 100755
--- a/py/db.py
+++ b/py/db.py
@@ -3,6 +3,7 @@
import sys
import pykms
import selectors
+from helpers import *
bar_width = 20
bar_speed = 8
@@ -42,7 +43,7 @@ class FlipHandler(pykms.PageFlipHandlerBase):
card = pykms.Card()
conn = card.get_first_connected_connector()
mode = conn.get_default_mode()
-crtc = conn.get_current_crtc()
+crtc = get_crtc_for_connector(conn)
fliphandler = FlipHandler()