mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/bmx280: add missing _release
This commit is contained in:
parent
9029d6f7c2
commit
c42c3475bf
@ -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…
Reference in New Issue
Block a user