Skip to content

Commit fb8e79d

Browse files
FRASTMerwango
authored andcommitted
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: Francois Ramu <francois.ramu@st.com>
1 parent 21e696f commit fb8e79d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sensor/vl53l1x/api/core/src/vl53l1_wait.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ VL53L1_Error VL53L1_poll_for_firmware_ready(
474474

475475
/* calculate time limit in absolute time */
476476

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

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

0 commit comments

Comments
 (0)