diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-23 09:31:08 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-23 09:43:43 +0300 |
commit | 0bc5bbd6766949d651f98e12981d79c86ce0bf99 (patch) | |
tree | e0816b9b3696e77197e3c1a6c3283ef0a4cb44c0 /py/helpers.py | |
parent | fa91e51e4a485ab813032ffcbc7d8cb8c96314d5 (diff) |
Fix the rest of the py scripts
Diffstat (limited to 'py/helpers.py')
-rw-r--r-- | py/helpers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/helpers.py b/py/helpers.py index acb9098..c523523 100644 --- a/py/helpers.py +++ b/py/helpers.py @@ -12,12 +12,12 @@ def props(o): print("%-15s %d (%#x)" % (prop.name, propval, propval)) def set_props(ob, map): - areq = pykms.AtomicReq(ob.card()) + areq = pykms.AtomicReq(ob.card) for key, value in map.items(): areq.add(ob, key, value) - if areq.commit() != 0: + if areq.commit_sync() != 0: print("commit failed") red = pykms.RGB(255, 0, 0) @@ -35,5 +35,5 @@ def disable_planes(card): areq.add(p, "FB_ID", 0) areq.add(p, "CRTC_ID", 0) - if areq.commit() != 0: + if areq.commit_sync() != 0: print("disabling planes failed") |