From 1de6af0d9ef4a1a1dda70d5af281b745ee2be835 Mon Sep 17 00:00:00 2001 From: Carlo PARATA Date: Fri, 22 Sep 2023 11:44:33 +0200 Subject: [PATCH] Fix warnings --- library.properties | 2 +- src/LSM6DSV16XSensor.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/library.properties b/library.properties index 3dad4c6..de0c670 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=STM32duino LSM6DSV16X -version=1.6.2 +version=1.6.3 author=SRA maintainer=stm32duino sentence=Ultra Low Power inertial measurement unit. diff --git a/src/LSM6DSV16XSensor.cpp b/src/LSM6DSV16XSensor.cpp index 94af8dc..018df2f 100644 --- a/src/LSM6DSV16XSensor.cpp +++ b/src/LSM6DSV16XSensor.cpp @@ -1827,6 +1827,8 @@ LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::Set_Tap_Shock_Time(uint8_t Time) if (lsm6dsv16x_write_reg(®_ctx, LSM6DSV16X_TAP_DUR, (uint8_t *)&tap_dur, 1) != LSM6DSV16X_OK) { return LSM6DSV16X_ERROR; } + + return LSM6DSV16X_OK; } /** @@ -3513,7 +3515,6 @@ LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::FIFO_Get_Rotation_Vector(float *rvec) LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::FIFO_Get_Gravity_Vector(float *gvec) { lsm6dsv16x_axis3bit16_t data_raw; - float gvec_float[3]; if (FIFO_Get_Data(data_raw.u8bit) != LSM6DSV16X_OK) { return LSM6DSV16X_ERROR;