From ac3920bbedba50275806d77ca6e3e3669e2b4bc1 Mon Sep 17 00:00:00 2001 From: Riccardo Rizzo Date: Mon, 22 Aug 2022 12:21:15 +0200 Subject: [PATCH] adde DSOX support --- src/LSM6DS3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }