Skip to content

Commit

Permalink
Fixed a bug with integer compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
BST-Github-Admin authored and kegov committed Jun 17, 2021
1 parent a31906a commit 9f9b030
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions bme68x.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* @file bme68x.c
* @date 2021-04-26
* @version v4.4.5
* @date 2021-05-24
* @version v4.4.6
*
*/

Expand Down Expand Up @@ -958,7 +958,7 @@ static uint32_t calc_gas_resistance_low(uint16_t gas_res_adc, uint8_t gas_range,
}

/* This internal API is used to calculate the gas resistance */
static uint32_t calc_gas_resistance_high(uint16_t gas_res_adc, uint8_t gas_range, const struct bme680_dev *dev)
static uint32_t calc_gas_resistance_high(uint16_t gas_res_adc, uint8_t gas_range)
{
uint32_t calc_gas_res;
uint32_t var1 = UINT32_C(262144) >> gas_range;
Expand Down
4 changes: 2 additions & 2 deletions bme68x.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* @file bme68x.h
* @date 2021-04-26
* @version v4.4.5
* @date 2021-05-24
* @version v4.4.6
*
*/

Expand Down
4 changes: 2 additions & 2 deletions bme68x_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* @file bme68x_defs.h
* @date 2021-04-26
* @version v4.4.5
* @date 2021-05-24
* @version v4.4.6
*
*/

Expand Down
4 changes: 2 additions & 2 deletions examples/sequential_mode/sequential_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ int main(void)
#ifdef BME68X_USE_FPU
printf("%u, %lu, %.2f, %.2f, %.2f, %.2f, 0x%x, %d, %d\n",
sample_count,
(long unsigned int)time_ms,
(long unsigned int)time_ms + (i * (del_period / 2000)),
data[i].temperature,
data[i].pressure,
data[i].humidity,
Expand All @@ -106,7 +106,7 @@ int main(void)
#else
printf("%u, %lu, %d, %lu, %lu, %lu, 0x%x, %d, %d\n",
sample_count,
(long unsigned int)time_ms,
(long unsigned int)time_ms + (i * (del_period / 2000)),
(data[i].temperature / 100),
(long unsigned int)data[i].pressure,
(long unsigned int)(data[i].humidity / 1000),
Expand Down

0 comments on commit 9f9b030

Please sign in to comment.