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 f079413 commit ac3920bCopy full SHA for ac3920b
src/LSM6DS3.cpp
@@ -49,7 +49,7 @@ int LSM6DS3Class::begin()
49
_wire->begin();
50
}
51
52
- if (readRegister(LSM6DS3_WHO_AM_I_REG) != 0x69) {
+ if (!(readRegister(LSM6DS3_WHO_AM_I_REG) == 0x6C || readRegister(LSM6DS3_WHO_AM_I_REG) == 0x69)) {
53
end();
54
return 0;
55
0 commit comments