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

Merge pull request #13656 from gschorcht/drivers/apds9xx_fix_wait_long_init

drivers/apd99xx: fix wait long initialization
This commit is contained in:
benpicco 2020-03-22 17:26:22 +01:00 committed by GitHub
commit e725111562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}