icm42688: fix configure call
The icm42688 introduced a safe configure function to make the configuration more atomic, but the main driver was never updated to call it so the new config values were discarded. Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
parent
a3f59fd86f
commit
591958752a
|
@ -166,7 +166,7 @@ static int icm42688_attr_set(const struct device *dev, enum sensor_channel chan,
|
|||
if (res) {
|
||||
return res;
|
||||
}
|
||||
return icm42688_configure(dev, &new_config);
|
||||
return icm42688_safely_configure(dev, &new_config);
|
||||
}
|
||||
|
||||
static int icm42688_attr_get(const struct device *dev, enum sensor_channel chan,
|
||||
|
|
Loading…
Reference in a new issue