Skip to content

Commit

Permalink
malloced sht30 struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Donahue committed Jan 22, 2024
1 parent f7b46eb commit 3ba9c01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Core/Src/analyzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ void analyzer_push(acc_data_t* accdata)

void analyzer_sht30_init(acc_data_t* accdata)
{
accdata->sht30_data = malloc(sizeof(sht30_t));
accdata->sht30_data->i2c_handle = &hi2c1;
}

Expand Down

0 comments on commit 3ba9c01

Please sign in to comment.