We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd565e commit 48566d8Copy full SHA for 48566d8
drivers/sensor/memsic/mmc56x3/mmc56x3.c
@@ -196,11 +196,16 @@ static int mmc56x3_chip_init(const struct device *dev)
196
const struct mmc56x3_config *config = &data->config;
197
198
ret = mmc56x3_chip_set_continuous_mode(dev, config->magn_odr);
199
+ if (ret < 0) {
200
+ return ret;
201
+ }
202
203
ret = mmc56x3_chip_set_decimation_filter(dev, config->bw0, config->bw1);
204
205
206
207
208
ret = mmc56x3_chip_set_auto_self_reset(dev, config->auto_sr);
-
209
if (ret < 0) {
210
return ret;
211
}
0 commit comments