Skip to content

Commit 9278add

Browse files
authored
Merge pull request #16 from iliasbartolini/master
Fix error in operator precedence
2 parents c15b7fa + c8b9ad5 commit 9278add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MAX30105.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ boolean MAX30105::begin(TwoWire &wirePort, uint32_t i2cSpeed, uint8_t i2caddr) {
162162

163163
// Step 1: Initial Communication and Verification
164164
// Check that a MAX30105 is connected
165-
if (!readPartID() == MAX_30105_EXPECTEDPARTID) {
165+
if (readPartID() != MAX_30105_EXPECTEDPARTID) {
166166
// Error -- Part ID read from MAX30105 does not match expected part ID.
167167
// This may mean there is a physical connectivity problem (broken wire, unpowered, etc).
168168
return false;

0 commit comments

Comments
 (0)