diff --git a/src/LSM6DS3.cpp b/src/LSM6DS3.cpp index f86e137..5f6fbdc 100644 --- a/src/LSM6DS3.cpp +++ b/src/LSM6DS3.cpp @@ -49,7 +49,7 @@ int LSM6DS3Class::begin() _wire->begin(); } - if (readRegister(LSM6DS3_WHO_AM_I_REG) != 0x69) { + if (!(readRegister(LSM6DS3_WHO_AM_I_REG) == 0x6C || readRegister(LSM6DS3_WHO_AM_I_REG) == 0x69)) { end(); return 0; }