Skip to content

Commit 43575a1

Browse files
authored
Merge pull request #6 from git-user-cpp/development
v2.0.1
2 parents 1aa3e7a + 96ea95c commit 43575a1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Core/Inc/aht20.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ typedef struct {
3131
float temperature_f;
3232
} aht20_data_t;
3333

34+
/*
35+
* making api public
36+
*/
3437
extern const aht20_sensor_api_t aht20_api;
3538

3639
/*

Core/Src/aht20.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ static uint8_t ACK_CMD = 0x06;
7373
*/
7474
static uint8_t NACK_CMD = 0x15;
7575

76+
/*
77+
* aht20 api
78+
*/
7679
const aht20_sensor_api_t aht20_api = {
7780
.aht20_validate_calibration = aht20_validate_calibration,
7881
.measure = aht20_measure,

Core/Src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
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>

0 commit comments

Comments
 (0)