Commit e24899a4 authored by Titouan Christophe's avatar Titouan Christophe Committed by Maureen Helm
Browse files

drivers: sensor: vl53l0x: wait only 2ms for tboot



As per the VL53L0X datasheet, in 2.9.1 "Power up and boot sequence",
time to boot is 1.2ms max, so we only have to wait at most 2ms.

Signed-off-by: default avatarTitouan Christophe <moiandme@gmail.com>
parent 1267d51d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -226,7 +226,7 @@ static int vl53l0x_init(const struct device *dev)
	}

	gpio_pin_set(gpio, DT_INST_GPIO_PIN(0, xshut_gpios), 1);
	k_sleep(K_MSEC(100));
	k_sleep(K_MSEC(2));
#endif

	drv_data->i2c = device_get_binding(DT_INST_BUS_LABEL(0));