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 {
3131 float temperature_f ;
3232} aht20_data_t ;
3333
34+ /*
35+ * making api public
36+ */
3437extern const aht20_sensor_api_t aht20_api ;
3538
3639/*
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ static uint8_t ACK_CMD = 0x06;
7373 */
7474static uint8_t NACK_CMD = 0x15 ;
7575
76+ /*
77+ * aht20 api
78+ */
7679const aht20_sensor_api_t aht20_api = {
7780 .aht20_validate_calibration = aht20_validate_calibration ,
7881 .measure = aht20_measure ,
Original file line number Diff line number Diff line change 2121
2222/* USER CODE END Header */
2323/* Includes ------------------------------------------------------------------*/
24- #include <aht20.h>
2524#include "main.h"
2625
2726/* Private includes ----------------------------------------------------------*/
2827/* USER CODE BEGIN Includes */
28+ #include "aht20.h"
2929#include "utils.h"
3030#include <stdio.h>
3131#include <string.h>
You can’t perform that action at this time.
0 commit comments