1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/apd99xx: fix wait long initialization

This commit is contained in:
Gunar Schorcht 2020-03-19 10:26:25 +01:00
parent d281d4843f
commit 2581fdee66

View File

@ -147,6 +147,11 @@ int apds99xx_init(apds99xx_t *dev, const apds99xx_params_t *params)
return -APDS99XX_ERROR_I2C;
}
if (_update_reg(dev, APDS99XX_REG_CONFIG, APDS99XX_REG_WLONG,
dev->params.wait_long)) {
return -APDS99XX_ERROR_I2C;
}
return APDS99XX_OK;
}