Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mpsse.i #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update mpsse.i #13

wants to merge 1 commit into from

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