1
0
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:
Bas Stottelaar 2021-01-12 23:47:08 +01:00
parent 9029d6f7c2
commit c42c3475bf

View File

@ -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 */
if (_read_reg(dev, BMX280_CHIP_ID_REG, &reg) != BMX280_OK) {
DEBUG("[bmx280] error: unable to read chip ID from device\n");
_release(dev);
return BMX280_ERR_NODEV;
}
if (reg != BMX280_CHIP_ID_VAL) {