Skip to content

Commit 8d351a6

Browse files
authored
Merge pull request #3 from NoahRosa/master
Bugfix on SetDistanceMode
2 parents 81b8413 + 9ce32df commit 8d351a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=STM32duino VL53L1X
2-
version=1.0.0
2+
version=1.0.1
33
author=AST
44
maintainer=stm32duino
55
sentence=Allows controlling the VL53L1X (Time-of-Flight and gesture detection sensor)

src/vl53l1x_class.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const uint8_t VL51L1X_DEFAULT_CONFIGURATION[] = {
100100
0x00, /* 0x5c : not user-modifiable */
101101
0x00, /* 0x5d : not user-modifiable */
102102
0x01, /* 0x5e : not user-modifiable */
103-
0xdb, /* 0x5f : not user-modifiable */
103+
0xcc, /* 0x5f : not user-modifiable */
104104
0x0f, /* 0x60 : not user-modifiable */
105105
0x01, /* 0x61 : not user-modifiable */
106106
0xf1, /* 0x62 : not user-modifiable */
@@ -413,6 +413,8 @@ VL53L1X_ERROR VL53L1X::VL53L1X_SetDistanceMode(uint16_t DM)
413413
VL53L1X_ERROR status = 0;
414414

415415
status = VL53L1X_GetTimingBudgetInMs(&TB);
416+
417+
416418
switch (DM) {
417419
case 1:
418420
status = VL53L1_WrByte(Device, PHASECAL_CONFIG__TIMEOUT_MACROP, 0x14);

0 commit comments

Comments
 (0)