temp values corrected

pull/9/head
Christian OE3CJB Bauer 2020-12-13 20:09:13 +01:00
rodzic c7f97add6a
commit 5a5a29b0ca
2 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -849,7 +849,7 @@ switch(tracker_mode) {
#else
#ifdef USE_BME280
bme.takeForcedMeasurement();
temp = bme.readTemperature();
tempf = bme.readTemperature();
hum = bme.readHumidity();
#else
hum = dht.getHumidity();
@ -888,7 +888,7 @@ switch(tracker_mode) {
helper = String(hum,0);
helper.trim();
outString += helper;
outString += "b......DHT22";
outString += "b......";
outString += MY_COMMENT;
break;
case WX_TRACKER:
@ -900,7 +900,7 @@ switch(tracker_mode) {
#else
#ifdef USE_BME280
bme.takeForcedMeasurement();
temp = bme.readTemperature(); // bme Temperatur auslesen
tempf = bme.readTemperature(); // bme Temperatur auslesen
hum = bme.readHumidity();
#else
hum = dht.getHumidity();
@ -964,7 +964,7 @@ switch(tracker_mode) {
helper = String(hum,0);
helper.trim();
outString += helper;
outString += "b......DHT22";
outString += "b......";
outString += MY_COMMENT;
wx = !wx;
} else {
@ -1028,7 +1028,7 @@ case WX_MOVE:
#else
#ifdef USE_BME280
bme.takeForcedMeasurement();
temp = bme.readTemperature(); // bme Temperatur auslesen
tempf = bme.readTemperature(); // bme Temperatur auslesen
hum = bme.readHumidity();
#else
hum = dht.getHumidity();
@ -1094,7 +1094,7 @@ case WX_MOVE:
helper = String(hum,0);
helper.trim();
outString += helper;
outString += "b......DHT22";
outString += "b......";
outString += MY_COMMENT;
break;
case TRACKER:

Wyświetl plik

@ -35,7 +35,7 @@
// SET temperature sensor type
// #define DS18B20 // use this if you use DS18B20, default is DHT22
// #define USE_BME280 // use this if you use BME280,m default is BDHT22
#define USE_BME280 // use this if you use BME280,m default is DHT22
// USER DATA - USE THESE LINES TO MODIFY YOUR PREFERENCES
// IF NOT CHANGED you have to go through the configuration routine at first boot up of the TTGO T-Beam