From 0bc5bbd6766949d651f98e12981d79c86ce0bf99 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 23 May 2016 09:31:08 +0300 Subject: Fix the rest of the py scripts --- py/helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'py/helpers.py') 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") -- cgit v1.2.3