py: fix AtomicReq.commit() return value
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 13 Mar 2017 08:10:22 +0000 (10:10 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 13 Mar 2017 08:10:38 +0000 (10:10 +0200)
py/pykms/pykmsbase.cpp

index 1cc91d8d3651617ec1e0e415167c15e951e44d47..d626019b1d769f0baee6b2faf3b91f0611cf1c39 100644 (file)
@@ -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)
                        ;