diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-21 22:10:35 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-21 23:37:30 +0100 |
commit | 4564e8e53af85e696a58e43677bae87470c52771 (patch) | |
tree | 1dd21978ab5437e9f8692f59825f6e83b4e94972 /type_logic.c | |
parent | 9bac00e0b211579935640bb4d6fed988d2d148c4 (diff) | |
download | libsigrokdecode-4564e8e53af85e696a58e43677bae87470c52771.tar.gz libsigrokdecode-4564e8e53af85e696a58e43677bae87470c52771.zip |
Clarify that {start,end,cur}_samplenum are absolute numbers.
Diffstat (limited to 'type_logic.c')
-rw-r--r-- | type_logic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |