Skip to content

Commit c8b9ad5

Browse files
author
Ilias Bartolini
committed
Fix error in operator precedence
1 parent c15b7fa commit c8b9ad5

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)