Merge pull request #15759 from basilfx/feature/bmx280_release
drivers/bmx280: add missing _release
This commit is contained in:
commit
2e0e5a5477
@ -255,6 +255,7 @@ int bmx280_init(bmx280_t *dev, const bmx280_params_t *params)
|
|||||||
/* test the connection to the device by reading and verifying its chip ID */
|
/* test the connection to the device by reading and verifying its chip ID */
|
||||||
if (_read_reg(dev, BMX280_CHIP_ID_REG, ®) != BMX280_OK) {
|
if (_read_reg(dev, BMX280_CHIP_ID_REG, ®) != BMX280_OK) {
|
||||||
DEBUG("[bmx280] error: unable to read chip ID from device\n");
|
DEBUG("[bmx280] error: unable to read chip ID from device\n");
|
||||||
|
_release(dev);
|
||||||
return BMX280_ERR_NODEV;
|
return BMX280_ERR_NODEV;
|
||||||
}
|
}
|
||||||
if (reg != BMX280_CHIP_ID_VAL) {
|
if (reg != BMX280_CHIP_ID_VAL) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user