We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9cfec7e + ae5e956 commit 85a601eCopy full SHA for 85a601e
src/LSM6DSOX.cpp
@@ -79,7 +79,7 @@ int LSM6DSOXClass::begin()
79
_wire->begin();
80
}
81
82
- if (readRegister(LSM6DSOX_WHO_AM_I_REG) != 0x6C) {
+ if (!(readRegister(LSM6DSOX_WHO_AM_I_REG) == 0x6C || readRegister(LSM6DSOX_WHO_AM_I_REG) == 0x69)) {
83
end();
84
return 0;
85
0 commit comments