mirror of
https://github.com/boschsensortec/BME280_SensorAPI.git
synced 2024-09-19 15:56:12 -04:00
Fix name of ifdef in linux_userspace.c
Previously linux_userspace.c had used BME280_FLOAT_ENABLE, but bme280.c defines BME280_DOUBLE_ENABLE.
This commit is contained in:
parent
3ba9abb813
commit
3b964fc935
@ -246,7 +246,7 @@ void print_sensor_data(struct bme280_data *comp_data)
|
|||||||
{
|
{
|
||||||
float temp, press, hum;
|
float temp, press, hum;
|
||||||
|
|
||||||
#ifdef BME280_FLOAT_ENABLE
|
#ifdef BME280_DOUBLE_ENABLE
|
||||||
temp = comp_data->temperature;
|
temp = comp_data->temperature;
|
||||||
press = 0.01 * comp_data->pressure;
|
press = 0.01 * comp_data->pressure;
|
||||||
hum = comp_data->humidity;
|
hum = comp_data->humidity;
|
||||||
|
Loading…
Reference in New Issue
Block a user