Commit fb8e79d1 authored by Francois Ramu's avatar Francois Ramu Committed by Erwan Gouriou
Browse files

sensor/vl53l1x api/core call to VL53L1_GetTickCount function



Modify the function call to VL53L1_GetTickCount to use
the right API as defined by the
./drivers/sensor/vl53l1x/vl53l1_platform.h

Signed-off-by: default avatarFrancois Ramu <francois.ramu@st.com>
parent 21e696ff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -474,7 +474,7 @@ VL53L1_Error VL53L1_poll_for_firmware_ready(

	/* calculate time limit in absolute time */

	VL53L1_GetTickCount(Dev, &start_time_ms); /*lint !e534 ignoring return*/
	VL53L1_GetTickCount(&start_time_ms); /*lint !e534 ignoring return*/
	pdev->fw_ready_poll_duration_ms = 0;

	/* wait until firmware is ready, timeout reached on error occurred */
@@ -499,7 +499,7 @@ VL53L1_Error VL53L1_poll_for_firmware_ready(
		 * Update polling time (Compare difference rather than
		 * absolute to negate 32bit wrap around issue)
		 */
		VL53L1_GetTickCount(Dev, &current_time_ms);  /*lint !e534 ignoring return*/
		VL53L1_GetTickCount(&current_time_ms);  /*lint !e534 ignoring return*/
		pdev->fw_ready_poll_duration_ms =
				current_time_ms - start_time_ms;
	}