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:
Yuval Peress 2023-02-22 13:04:27 -07:00 committed by Carles Cufí
parent a3f59fd86f
commit 591958752a

View file

@ -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,