Skip to content

Commit 05d098b

Browse files
committed
Update uld to v1.3.10
1 parent 34b8cd2 commit 05d098b

11 files changed

+10
-47
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# VL53L5CX library for ESP32
22

33
A vl53l5cx library for esp32 using the **esp-idf framework**. This library is based
4-
on [ST's Ultra Lite Driver (ULD) for VL53L5CX](https://www.st.com/content/st_com/en/products/embedded-software/imaging-software/stsw-img023.html)
4+
on [ST's Ultra Lite Driver (ULD) for VL53L5CX](https://www.st.com/content/st_com/en/products/embedded-software/imaging-software/stsw-img023.html) v1.3.10
55
. This library is just an adaptation of the ST's library for esp-32.
66

77
> **Warning**
@@ -43,7 +43,7 @@ So, you can use the [IDF Component Manager](https://docs.espressif.com/projects/
4343
To add this component to your project, run:
4444

4545
```log
46-
idf.py add-dependency "rjrp44/vl53l5cx^2.0.1"
46+
idf.py add-dependency "rjrp44/vl53l5cx^2.0.2"
4747
```
4848

4949

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "2.0.1"
1+
version: "2.0.2"
22
description: "A vl53l5cx library for esp32 using the esp-idf framework."
33
url: "https://github.com/RJRP44/VL53L5CX-Library"
44
repository: "https://github.com/RJRP44/VL53L5CX-Library"

include/vl53l5cx_api.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
******************************************************************************
1111
*/
1212

13-
#ifdef __cplusplus
14-
extern "C" {
15-
#endif
16-
1713
#ifndef VL53L5CX_API_H_
1814
#define VL53L5CX_API_H_
1915

@@ -29,7 +25,7 @@ extern "C" {
2925
* @brief Current driver version.
3026
*/
3127

32-
#define VL53L5CX_API_REVISION "VL53L5CX_1.3.9"
28+
#define VL53L5CX_API_REVISION "VL53L5CX_1.3.10"
3329

3430
/**
3531
* @brief Default I2C address of VL53L5CX sensor. Can be changed using function
@@ -86,6 +82,7 @@ extern "C" {
8682
#define VL53L5CX_STATUS_TIMEOUT_ERROR ((uint8_t) 1U)
8783
#define VL53L5CX_STATUS_CORRUPTED_FRAME ((uint8_t) 2U)
8884
#define VL53L5CX_STATUS_CRC_CSUM_FAILED ((uint8_t) 3U)
85+
#define VL53L5CX_STATUS_XTALK_FAILED ((uint8_t) 4U)
8986
#define VL53L5CX_MCU_ERROR ((uint8_t) 66U)
9087
#define VL53L5CX_STATUS_INVALID_PARAM ((uint8_t) 127U)
9188
#define VL53L5CX_STATUS_ERROR ((uint8_t) 255U)
@@ -719,7 +716,3 @@ uint8_t vl53l5cx_dci_replace_data(
719716
uint16_t new_data_pos);
720717

721718
#endif //VL53L5CX_API_H_
722-
723-
#ifdef __cplusplus
724-
}
725-
#endif

include/vl53l5cx_buffers.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
******************************************************************************
1111
*/
1212

13-
#ifdef __cplusplus
14-
extern "C" {
15-
#endif
1613

1714
#ifndef VL53L5CX_BUFFERS_H_
1815
#define VL53L5CX_BUFFERS_H_
@@ -22012,7 +22009,3 @@ const uint8_t VL53L5CX_GET_NVM_CMD[] = {
2201222009

2201322010
#endif /* VL53L5CX_BUFFERS_H_ */
2201422011

22015-
22016-
#ifdef __cplusplus
22017-
}
22018-
#endif

include/vl53l5cx_plugin_detection_thresholds.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
******************************************************************************
1111
*/
1212

13-
#ifdef __cplusplus
14-
extern "C" {
15-
#endif
16-
1713
#ifndef VL53L5CX_PLUGIN_DETECTION_THRESHOLDS_H_
1814
#define VL53L5CX_PLUGIN_DETECTION_THRESHOLDS_H_
1915

@@ -148,7 +144,3 @@ uint8_t vl53l5cx_set_detection_thresholds(
148144
VL53L5CX_DetectionThresholds *p_thresholds);
149145

150146
#endif /* VL53L5CX_PLUGIN_DETECTION_THRESHOLDS_H_ */
151-
152-
#ifdef __cplusplus
153-
}
154-
#endif

include/vl53l5cx_plugin_motion_indicator.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
******************************************************************************
1111
*/
1212

13-
#ifdef __cplusplus
14-
extern "C" {
15-
#endif
16-
1713
#ifndef VL53L5CX_PLUGIN_MOTION_INDICATOR_H_
1814
#define VL53L5CX_PLUGIN_MOTION_INDICATOR_H_
1915

@@ -98,7 +94,3 @@ uint8_t vl53l5cx_motion_indicator_set_resolution(
9894
uint8_t resolution);
9995

10096
#endif /* VL53L5CX_PLUGIN_MOTION_INDICATOR_H_ */
101-
102-
#ifdef __cplusplus
103-
}
104-
#endif

include/vl53l5cx_plugin_xtalk.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
******************************************************************************
1111
*/
1212

13-
#ifdef __cplusplus
14-
extern "C" {
15-
#endif
16-
1713
#ifndef VL53L5CX_PLUGIN_XTALK_H_
1814
#define VL53L5CX_PLUGIN_XTALK_H_
1915

@@ -393,7 +389,3 @@ static const uint8_t VL53L5CX_CALIBRATE_XTALK[] = {
393389
};
394390

395391
#endif /* VL53L5CX_PLUGIN_XTALK_H_ */
396-
397-
#ifdef __cplusplus
398-
}
399-
#endif

vl53l5cx_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ uint8_t vl53l5cx_stop_ranging(
630630
status |= RdMulti(&(p_dev->platform),
631631
0x2FFC, (uint8_t*)&auto_stop_flag, 4);
632632
if((auto_stop_flag != (uint32_t)0x4FF)
633-
&& (p_dev->is_auto_stop_enabled == (uint8_t)1))
633+
&& (p_dev->is_auto_stop_enabled == (uint8_t)0))
634634
{
635635
status |= WrByte(&(p_dev->platform), 0x7fff, 0x00);
636636

vl53l5cx_plugin_detection_thresholds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
******************************************************************************
1111
*/
1212

13-
#include "include/vl53l5cx_plugin_detection_thresholds.h"
13+
#include "vl53l5cx_plugin_detection_thresholds.h"
1414

1515
uint8_t vl53l5cx_get_detection_thresholds_enable(
1616
VL53L5CX_Configuration *p_dev,

vl53l5cx_plugin_motion_indicator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
#include <math.h>
14-
#include "include/vl53l5cx_plugin_motion_indicator.h"
14+
#include "vl53l5cx_plugin_motion_indicator.h"
1515

1616
uint8_t vl53l5cx_motion_indicator_init(
1717
VL53L5CX_Configuration *p_dev,

0 commit comments

Comments
 (0)