File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ typedef struct {
31
31
float temperature_f ;
32
32
} aht20_data_t ;
33
33
34
+ /*
35
+ * making api public
36
+ */
34
37
extern const aht20_sensor_api_t aht20_api ;
35
38
36
39
/*
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ static uint8_t ACK_CMD = 0x06;
73
73
*/
74
74
static uint8_t NACK_CMD = 0x15 ;
75
75
76
+ /*
77
+ * aht20 api
78
+ */
76
79
const aht20_sensor_api_t aht20_api = {
77
80
.aht20_validate_calibration = aht20_validate_calibration ,
78
81
.measure = aht20_measure ,
Original file line number Diff line number Diff line change 21
21
22
22
/* USER CODE END Header */
23
23
/* Includes ------------------------------------------------------------------*/
24
- #include <aht20.h>
25
24
#include "main.h"
26
25
27
26
/* Private includes ----------------------------------------------------------*/
28
27
/* USER CODE BEGIN Includes */
28
+ #include "aht20.h"
29
29
#include "utils.h"
30
30
#include <stdio.h>
31
31
#include <string.h>
You can’t perform that action at this time.
0 commit comments