From 13db7be589f560c7f3a8f4f15b12945fe3a25596 Mon Sep 17 00:00:00 2001 From: Carlo Parata Date: Thu, 4 Jul 2024 16:53:03 +0200 Subject: [PATCH] Update LSM6DSV16XSensor.cpp Signed-off-by: Carlo Parata --- src/LSM6DSV16XSensor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LSM6DSV16XSensor.cpp b/src/LSM6DSV16XSensor.cpp index 9517e64..6c8f6a8 100644 --- a/src/LSM6DSV16XSensor.cpp +++ b/src/LSM6DSV16XSensor.cpp @@ -122,7 +122,7 @@ LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::begin() : LSM6DSV16X_16g; /* Full scale selection. */ - if (lsm6dsv16x_xl_full_scale_set(®_ctx, LSM6DSV16X_2g) != LSM6DSV16X_OK) { + if (Set_X_FS(2) != LSM6DSV16X_OK) { return LSM6DSV16X_ERROR; } @@ -147,7 +147,7 @@ LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::begin() : LSM6DSV16X_4000dps; /* Full scale selection. */ - if (lsm6dsv16x_gy_full_scale_set(®_ctx, LSM6DSV16X_2000dps) != LSM6DSV16X_OK) { + if (Set_G_FS(2000) != LSM6DSV16X_OK) { return LSM6DSV16X_ERROR; }