Skip to content

Commit 96ea95c

Browse files
committed
added comments
1 parent 48d6b5d commit 96ea95c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
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,

0 commit comments

Comments
 (0)