summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-03-13 10:10:22 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-03-13 10:10:38 +0200
commit3115684d76a10f75d523c4532822e524994757bc (patch)
tree16838a2940021024c6a7a1df54c6dcf194aba89c /py
parentf99ec93a0863abf3f1e9600eb4dd697b981bce83 (diff)
py: fix AtomicReq.commit() return value
Diffstat (limited to 'py')
-rw-r--r--py/pykms/pykmsbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp
index 1cc91d8..d626019 100644
--- a/py/pykms/pykmsbase.cpp
+++ b/py/pykms/pykmsbase.cpp
@@ -179,7 +179,7 @@ void init_pykmsbase(py::module &m)
// This adds a ref to the object, and must be unpacked with __ob_unpack_helper()
PyObject* pob = ob.ptr();
Py_XINCREF(pob);
- self->commit(pob, allow);
+ return self->commit(pob, allow);
}, py::arg("data"), py::arg("allow_modeset") = false)
.def("commit_sync", &AtomicReq::commit_sync, py::arg("allow_modeset") = false)
;