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.
1 parent 9cfec7e commit ae5e956Copy full SHA for ae5e956
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