Skip to content

Commit

Permalink
stts751: Fix + Rename
Browse files Browse the repository at this point in the history
Functions:
- Fix      low_temperature_threshold_set
- Fix      high_temperature_threshold_set
  • Loading branch information
albezanc committed Nov 28, 2018
1 parent 6d88368 commit 0467d43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stts751_STdC/driver/stts751_reg.c
Expand Up @@ -451,12 +451,12 @@ int32_t stts751_high_temperature_threshold_set(stts751_ctx_t *ctx,

temperature_ptr = (uint8_t*)&buff;
ret = stts751_write_reg(ctx, STTS751_TEMPERATURE_HIGH_LIMIT_LOW,
(uint8_t*)&temperature_ptr, 1);
(uint8_t*)temperature_ptr, 1);

if (ret == 0) {
temperature_ptr++;
ret = stts751_write_reg(ctx, STTS751_TEMPERATURE_HIGH_LIMIT_HIGH,
(uint8_t*)&temperature_ptr, 1);
(uint8_t*)temperature_ptr, 1);
}

return ret;
Expand Down Expand Up @@ -506,12 +506,12 @@ int32_t stts751_low_temperature_threshold_set(stts751_ctx_t *ctx,

temperature_ptr = (uint8_t*)&buff;
ret = stts751_write_reg(ctx, STTS751_TEMPERATURE_LOW_LIMIT_LOW,
(uint8_t*)&temperature_ptr, 1);
(uint8_t*)temperature_ptr, 1);

if (ret == 0) {
temperature_ptr++;
ret = stts751_write_reg(ctx, STTS751_TEMPERATURE_LOW_LIMIT_HIGH,
(uint8_t*)&temperature_ptr, 1);
(uint8_t*)temperature_ptr, 1);
}

return ret;
Expand Down

0 comments on commit 0467d43

Please sign in to comment.