/* Waits for a specific amount of time which depends on the current integration time setting. 
For more information see the "Designing the VEML7700 Into an Application" application notes about the power saving modes.  */
static void veml7700_sleep_by_integration_time(const struct veml7700_data *data)
/* Waits for a specific amount of time which depends on the current integration time setting. 
For more information see the "Designing the VEML7700 Into an Application" application notes about the power saving modes.  */
static void veml7700_sleep_by_integration_time(const struct veml7700_data *data)
{
	switch (data->it) {
	case VEML7700_ALS_IT_25:
		k_msleep(50);
		break;
	case VEML7700_ALS_IT_50:
		k_msleep(100);
		break;
	case VEML7700_ALS_IT_100:
		k_msleep(200);
		break;
	case VEML7700_ALS_IT_200:
		k_msleep(400);
		break;
	case VEML7700_ALS_IT_400:
		k_msleep(800);
		break;
	case VEML7700_ALS_IT_800:
		k_msleep(1600);
		break;
	}
}