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

unary operation made safe in error handler for Thermocouple #23

Merged
merged 1 commit into from
Sep 15, 2017

Conversation

davelloper
Copy link
Contributor

Correction for error detected in the MAX31855 driver. Error was caused by unary & casting to 16 or less bits when the compared operand are not all explicitly 32 bits. This is probably Python version dependent so it is safer for future version of the language since it explicitly set the size of both members of the unary comparison

unary & is used with 32 bits operands. If the operand literal is not
explicitly expressed as  32bits, it can create random casting errors
depending on the Python version and the underlying implementation.
@chron0 chron0 merged commit c6b5ca1 into apollo-ng:master Sep 15, 2017
@chron0
Copy link
Member

chron0 commented Sep 15, 2017

Thank you!

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.

2 participants