diff --git a/library.properties b/library.properties index 7ec2439..954e8f7 100644 --- a/library.properties +++ b/library.properties @@ -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) diff --git a/src/vl53l1x_class.cpp b/src/vl53l1x_class.cpp index 77f5dfc..990855f 100644 --- a/src/vl53l1x_class.cpp +++ b/src/vl53l1x_class.cpp @@ -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 */ @@ -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);