apollo-ng / picoReflow

Turns a Raspberry Pi into a universal, web enabled Reflow Oven Controller
202 stars 118 forks source link

unary operation made safe in error handler for Thermocouple #23

Closed davelloper closed 7 years ago

davelloper commented 7 years ago

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

chron0 commented 7 years ago

Thank you!