From c8f9c50e1632d07ee83e9191f161b323b469453a Mon Sep 17 00:00:00 2001 From: crossleyjo Date: Tue, 20 Oct 2015 17:52:14 -0700 Subject: [PATCH] Update mpsse.i I found that calling the SetDirection function from python led to an TypeError due to the uint8_t parameter int SetDirection(struct mpsse_context *mpsse, uint8_t direction); I found the solution on stack exchange, recompiled, and confirmed that the error disappeared. https://stackoverflow.com/questions/8897294/swig-python-c-how-to-use-type-int8-t --- src/mpsse.i | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mpsse.i b/src/mpsse.i index 976a583..0dcd30b 100644 --- a/src/mpsse.i +++ b/src/mpsse.i @@ -1,4 +1,5 @@ %module pylibmpsse +%include "stdint.i" %{ #include "mpsse.h" %}