sparkfun / SparkFun_MAX3010x_Sensor_Library

An Arduino Library for the MAX3015 particle sensor and MAX30102 Pulse Ox sensor
Other
221 stars 148 forks source link

Fix error in operator precedence #16

Closed iliasbartolini closed 6 years ago

iliasbartolini commented 6 years ago

Hi, I had no opportunity to test with real hardware both scenarios but this seems an obvious fix. I have a broken sensor only with caused this to happen.

Please double check it before merging.

Ilias

nseidle commented 6 years ago

Whew! We just had quite the conversation here about what a ! will do in front of a function that returns a uint8_t. In summary, we shouldn't have done it.

Thank you for this commit! It helps make the code better.