Skip to content

Commit 9f9b030

Browse files
BST-Github-Adminkegov
authored andcommitted
Fixed a bug with integer compilation error.
1 parent a31906a commit 9f9b030

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

bme68x.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* POSSIBILITY OF SUCH DAMAGE.
3232
*
3333
* @file bme68x.c
34-
* @date 2021-04-26
35-
* @version v4.4.5
34+
* @date 2021-05-24
35+
* @version v4.4.6
3636
*
3737
*/
3838

@@ -958,7 +958,7 @@ static uint32_t calc_gas_resistance_low(uint16_t gas_res_adc, uint8_t gas_range,
958958
}
959959

960960
/* This internal API is used to calculate the gas resistance */
961-
static uint32_t calc_gas_resistance_high(uint16_t gas_res_adc, uint8_t gas_range, const struct bme680_dev *dev)
961+
static uint32_t calc_gas_resistance_high(uint16_t gas_res_adc, uint8_t gas_range)
962962
{
963963
uint32_t calc_gas_res;
964964
uint32_t var1 = UINT32_C(262144) >> gas_range;

bme68x.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* POSSIBILITY OF SUCH DAMAGE.
3232
*
3333
* @file bme68x.h
34-
* @date 2021-04-26
35-
* @version v4.4.5
34+
* @date 2021-05-24
35+
* @version v4.4.6
3636
*
3737
*/
3838

bme68x_defs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* POSSIBILITY OF SUCH DAMAGE.
3232
*
3333
* @file bme68x_defs.h
34-
* @date 2021-04-26
35-
* @version v4.4.5
34+
* @date 2021-05-24
35+
* @version v4.4.6
3636
*
3737
*/
3838

examples/sequential_mode/sequential_mode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ int main(void)
9595
#ifdef BME68X_USE_FPU
9696
printf("%u, %lu, %.2f, %.2f, %.2f, %.2f, 0x%x, %d, %d\n",
9797
sample_count,
98-
(long unsigned int)time_ms,
98+
(long unsigned int)time_ms + (i * (del_period / 2000)),
9999
data[i].temperature,
100100
data[i].pressure,
101101
data[i].humidity,
@@ -106,7 +106,7 @@ int main(void)
106106
#else
107107
printf("%u, %lu, %d, %lu, %lu, %lu, 0x%x, %d, %d\n",
108108
sample_count,
109-
(long unsigned int)time_ms,
109+
(long unsigned int)time_ms + (i * (del_period / 2000)),
110110
(data[i].temperature / 100),
111111
(long unsigned int)data[i].pressure,
112112
(long unsigned int)(data[i].humidity / 1000),

0 commit comments

Comments
 (0)