From ae5e9560f69c45fe3ddeb380170600b865508c42 Mon Sep 17 00:00:00 2001 From: Riccardo Rizzo Date: Fri, 19 Aug 2022 10:19:40 +0200 Subject: [PATCH] Added support for LSM6DS3 --- src/LSM6DSOX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LSM6DSOX.cpp b/src/LSM6DSOX.cpp index 91bd594..1fa2b76 100644 --- a/src/LSM6DSOX.cpp +++ b/src/LSM6DSOX.cpp @@ -79,7 +79,7 @@ int LSM6DSOXClass::begin() _wire->begin(); } - if (readRegister(LSM6DSOX_WHO_AM_I_REG) != 0x6C) { + if (!(readRegister(LSM6DSOX_WHO_AM_I_REG) == 0x6C || readRegister(LSM6DSOX_WHO_AM_I_REG) == 0x69)) { end(); return 0; }