icm42688: Capture the spi return value
Handle the return value of the spi transaction. Fixes #58582 Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
parent
3f2d6efc9c
commit
5edc45421a
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ int icm42688_trigger_set(const struct device *dev, const struct sensor_trigger *
|
|||
data->data_ready_handler = handler;
|
||||
data->data_ready_trigger = trig;
|
||||
|
||||
icm42688_spi_read(&cfg->spi, REG_INT_STATUS, &status, 1);
|
||||
res = icm42688_spi_read(&cfg->spi, REG_INT_STATUS, &status, 1);
|
||||
break;
|
||||
default:
|
||||
res = -ENOTSUP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue