X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=controller.c;h=84a22b5b9520d81a1a8e89729080761f2829c0d3;hp=982bceb6b6468b35080fbd60c9f5b95a422c5635;hb=73191416cc24884ffab5f21cc3405c7757884fba;hpb=5f802ec6473029e89d2db9cbd71cf0ce86a1b653 diff --git a/controller.c b/controller.c index 982bceb..84a22b5 100644 --- a/controller.c +++ b/controller.c @@ -19,7 +19,7 @@ */ #include "config.h" -#include /* First, so we avoid a _POSIX_C_SOURCE warning. */ +#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include #include @@ -386,7 +386,7 @@ int srd_run_decoder(uint64_t timeoffset, uint64_t duration, Py_XINCREF(py_instance); if (!(py_res = PyObject_CallMethod(py_instance, "decode", - "KKs#", timeoffset, duration, inbuf, inbuflen))) { + "KKy#", timeoffset, duration, inbuf, inbuflen))) { if (PyErr_Occurred()) PyErr_Print(); /* Returns void. */