From 3888d9a196f5dfe31f7727eb535151e2a312f307 Mon Sep 17 00:00:00 2001 From: RestucciaMichele <72453178+RestucciaMichele@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:40:42 +0100 Subject: [PATCH] Update LSM6DSV16XSensor.cpp Test_G_IMU error (xl_data_rate_set -> gy_data_rate_set) Signed-off-by: RestucciaMichele <72453178+RestucciaMichele@users.noreply.github.com> --- src/LSM6DSV16XSensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LSM6DSV16XSensor.cpp b/src/LSM6DSV16XSensor.cpp index 6c8f6a8..bc3fcc3 100644 --- a/src/LSM6DSV16XSensor.cpp +++ b/src/LSM6DSV16XSensor.cpp @@ -3619,7 +3619,7 @@ LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::Test_G_IMU(uint8_t TestType = LSM6DSV1 return LSM6DSV16X_ERROR; } - if (lsm6dsv16x_xl_data_rate_set(®_ctx, LSM6DSV16X_ODR_OFF) != LSM6DSV16X_OK) { + if (lsm6dsv16x_gy_data_rate_set(®_ctx, LSM6DSV16X_ODR_OFF) != LSM6DSV16X_OK) { return LSM6DSV16X_ERROR; } return LSM6DSV16X_OK;