From 4564e8e53af85e696a58e43677bae87470c52771 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 21 Feb 2017 22:10:35 +0100 Subject: Clarify that {start,end,cur}_samplenum are absolute numbers. --- type_logic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'type_logic.c') diff --git a/type_logic.c b/type_logic.c index d126d7b..ba356c0 100644 --- a/type_logic.c +++ b/type_logic.c @@ -61,7 +61,7 @@ static PyObject *srd_logic_iternext(PyObject *self) /* Prepare the next samplenum/sample list in this iteration. */ py_samplenum = - PyLong_FromUnsignedLongLong(logic->start_samplenum + + PyLong_FromUnsignedLongLong(logic->abs_start_samplenum + logic->itercnt); PyList_SetItem(logic->sample, 0, py_samplenum); py_samples = PyBytes_FromStringAndSize((const char *)logic->di->channel_samples, -- cgit v1.2.3-70-g09d2