From 58331f66e72a941bdecdfa949d93bb169bc0fda1 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 20 Jul 2018 10:13:59 +0200 Subject: [PATCH] bindings: python: fix the default_vals argument in line requests We're assigning the wrong local variable in PyArg_ParseTupleAndKeywords() which results in not honoring the default_vals argument. Fix the LineBulk.request() implementation. Fixes: 96c524c4951c ("bindings: implement python bindings") Signed-off-by: Bartosz Golaszewski --- bindings/python/gpiodmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/gpiodmodule.c b/bindings/python/gpiodmodule.c index 60f39c6..2110a20 100644 --- a/bindings/python/gpiodmodule.c +++ b/bindings/python/gpiodmodule.c @@ -901,7 +901,7 @@ static PyObject *gpiod_LineBulk_request(gpiod_LineBulkObject *self, rv = PyArg_ParseTupleAndKeywords(args, kwds, "s|iiO", kwlist, &consumer, &type, - &flags, &default_vals); + &flags, &def_vals_obj); if (!rv) return NULL; -- 2.30.2