Skip to content

Update mpsse.i#13

Open
crossleyjo wants to merge 1 commit intodevttys0:masterfrom
crossleyjo:patch-1
Open

Update mpsse.i#13
crossleyjo wants to merge 1 commit intodevttys0:masterfrom
crossleyjo:patch-1

Conversation

@crossleyjo
Copy link

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant