libmpsse icon indicating copy to clipboard operation
libmpsse copied to clipboard

Update mpsse.i

Open crossleyjo opened this issue 10 years ago • 0 comments

I found that calling the SetDirection function from python led to a TypeError due to the uint8_t parameter in the function declaration

int SetDirection(struct mpsse_context *mpsse, uint8_t direction);

Stack exchange said I could just include stdint.i in the mpsse.i file. I recompiled and confirmed that the error disappeared.

https://stackoverflow.com/questions/8897294/swig-python-c-how-to-use-type-int8-t

crossleyjo avatar Oct 21 '15 00:10 crossleyjo