drivers: sensor: wsen_itds_2533020201601: fix unhandled returned values
The returned values from function calls should be ignored since these function calls are dummy reads. fixes #90480 Signed-off-by: Wajdi ELMuhtadi <wajdi.elmuhtadi@we-online.com>
This commit is contained in:
parent
569f4d6d18
commit
ea6eade52b
1 changed files with 4 additions and 4 deletions
|
@ -228,9 +228,9 @@ int itds_2533020201601_trigger_set(const struct device *dev, const struct sensor
|
|||
data->temp_data_ready_handler);
|
||||
if (state) {
|
||||
/* Dummy read: re-trigger interrupt */
|
||||
ITDS_getRawAccelerationX(&data->sensor_interface, &x);
|
||||
ITDS_getRawAccelerationY(&data->sensor_interface, &y);
|
||||
ITDS_getRawAccelerationZ(&data->sensor_interface, &z);
|
||||
(void)ITDS_getRawAccelerationX(&data->sensor_interface, &x);
|
||||
(void)ITDS_getRawAccelerationY(&data->sensor_interface, &y);
|
||||
(void)ITDS_getRawAccelerationZ(&data->sensor_interface, &z);
|
||||
}
|
||||
if (ITDS_enableDataReadyINT1(&data->sensor_interface, state) !=
|
||||
WE_SUCCESS) {
|
||||
|
@ -246,7 +246,7 @@ int itds_2533020201601_trigger_set(const struct device *dev, const struct sensor
|
|||
data->temp_data_ready_handler);
|
||||
if (state) {
|
||||
/* Dummy read: re-trigger interrupt */
|
||||
ITDS_getRawTemperature12bit(&data->sensor_interface, &x);
|
||||
(void)ITDS_getRawTemperature12bit(&data->sensor_interface, &x);
|
||||
}
|
||||
if (ITDS_enableTempDataReadyINT1(&data->sensor_interface, state) !=
|
||||
WE_SUCCESS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue