Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=STM32duino VL53L1X
version=1.0.0
version=1.0.1
author=AST
maintainer=stm32duino
sentence=Allows controlling the VL53L1X (Time-of-Flight and gesture detection sensor)
Expand Down
4 changes: 3 additions & 1 deletion src/vl53l1x_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const uint8_t VL51L1X_DEFAULT_CONFIGURATION[] = {
0x00, /* 0x5c : not user-modifiable */
0x00, /* 0x5d : not user-modifiable */
0x01, /* 0x5e : not user-modifiable */
0xdb, /* 0x5f : not user-modifiable */
0xcc, /* 0x5f : not user-modifiable */
0x0f, /* 0x60 : not user-modifiable */
0x01, /* 0x61 : not user-modifiable */
0xf1, /* 0x62 : not user-modifiable */
Expand Down Expand Up @@ -413,6 +413,8 @@ VL53L1X_ERROR VL53L1X::VL53L1X_SetDistanceMode(uint16_t DM)
VL53L1X_ERROR status = 0;

status = VL53L1X_GetTimingBudgetInMs(&TB);


switch (DM) {
case 1:
status = VL53L1_WrByte(Device, PHASECAL_CONFIG__TIMEOUT_MACROP, 0x14);
Expand Down