Skip to content

Commit

Permalink
stts22h: fixed call set threshold in example #115
Browse files Browse the repository at this point in the history
  • Loading branch information
albezanc authored and albezanc committed Feb 19, 2021
1 parent aee3629 commit c1395f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stts22h_STdC/example/stts22h_read_data_polling.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ void stts22h_read_data_polling(void)

/* Enable interrupt on high(=49.5 degC)/low(=2.5 degC) temperature. */
//float temperature_high_limit = 49.5f;
//stts22h_temp_trshld_high_set(&dev_ctx, (int8_t)(temperature_high_limit / 64.0f) + 64 );
//stts22h_temp_trshld_high_set(&dev_ctx, (int8_t)(temperature_high_limit / 0.64f) + 64 );

//float temperature_low_limit = 2.5f;
//stts22h_temp_trshld_low_set(&dev_ctx, (int8_t)(temperature_low_limit / 64.0f) + 64 );
//stts22h_temp_trshld_low_set(&dev_ctx, (int8_t)(temperature_low_limit / 0.64f) + 64 );

/* Read samples in polling mode */
while (1) {
Expand Down

0 comments on commit c1395f8

Please sign in to comment.