Skip to content

Commit 53447c8

Browse files
authored
Merge pull request #32 from Rocketct/master
adde DSOX support
2 parents f079413 + ac3920b commit 53447c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LSM6DS3.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int LSM6DS3Class::begin()
4949
_wire->begin();
5050
}
5151

52-
if (readRegister(LSM6DS3_WHO_AM_I_REG) != 0x69) {
52+
if (!(readRegister(LSM6DS3_WHO_AM_I_REG) == 0x6C || readRegister(LSM6DS3_WHO_AM_I_REG) == 0x69)) {
5353
end();
5454
return 0;
5555
}

0 commit comments

Comments
 (0)