Skip to content

Commit

Permalink
Fix cpp compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
RJRP44 committed May 5, 2024
1 parent 4ee6c06 commit 2f44d55
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2 deletions.
2 changes: 1 addition & 1 deletion idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2.0.0"
version: "2.0.1"
description: "A vl53l8cx library for esp32 using the esp-idf framework."
url: "https://github.com/RJRP44/VL53L8CX-Library"
repository: "https://github.com/RJRP44/VL53L8CX-Library"
Expand Down
8 changes: 8 additions & 0 deletions include/vl53l8cx_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L8CX_API_H_
#define VL53L8CX_API_H_

Expand Down Expand Up @@ -756,3 +760,7 @@ uint8_t vl53l8cx_dci_replace_data(
uint16_t new_data_pos);

#endif //VL53L8CX_API_H_

#ifdef __cplusplus
}
#endif
8 changes: 7 additions & 1 deletion include/vl53l8cx_buffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L8CX_BUFFERS_H_
#define VL53L8CX_BUFFERS_H_
Expand Down Expand Up @@ -22009,4 +22012,7 @@ const uint8_t VL53L8CX_GET_NVM_CMD[] = {
};

#endif /* VL53L8CX_BUFFERS_H_ */


#ifdef __cplusplus
}
#endif
8 changes: 8 additions & 0 deletions include/vl53l8cx_plugin_detection_thresholds.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L8CX_PLUGIN_DETECTION_THRESHOLDS_H_
#define VL53L8CX_PLUGIN_DETECTION_THRESHOLDS_H_

Expand Down Expand Up @@ -184,3 +188,7 @@ uint8_t vl53l8cx_set_detection_thresholds_auto_stop(
uint8_t auto_stop);

#endif /* VL53L8CX_PLUGIN_DETECTION_THRESHOLDS_H_ */

#ifdef __cplusplus
}
#endif
8 changes: 8 additions & 0 deletions include/vl53l8cx_plugin_motion_indicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L8CX_PLUGIN_MOTION_INDICATOR_H_
#define VL53L8CX_PLUGIN_MOTION_INDICATOR_H_

Expand Down Expand Up @@ -94,3 +98,7 @@ uint8_t vl53l8cx_motion_indicator_set_resolution(
uint8_t resolution);

#endif /* VL53L8CX_PLUGIN_MOTION_INDICATOR_H_ */

#ifdef __cplusplus
}
#endif
8 changes: 8 additions & 0 deletions include/vl53l8cx_plugin_xtalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
******************************************************************************
*/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef VL53L8CX_PLUGIN_XTALK_H_
#define VL53L8CX_PLUGIN_XTALK_H_

Expand Down Expand Up @@ -389,3 +393,7 @@ static const uint8_t VL53L8CX_CALIBRATE_XTALK[] = {
};

#endif /* VL53L8CX_PLUGIN_XTALK_H_ */

#ifdef __cplusplus
}
#endif

0 comments on commit 2f44d55

Please sign in to comment.