index mod1
This commit is contained in:
parent
67c2a61f09
commit
5c0fba60b5
|
|
@ -847,7 +847,7 @@
|
|||
>Heigh Correction</label
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
type="number"
|
||||
name="bme.heightCorrection"
|
||||
id="bme.heightCorrection"
|
||||
value="0"
|
||||
|
|
@ -859,7 +859,7 @@
|
|||
>Temperature Correction</label
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
type="number"
|
||||
name="bme.temperatureCorrection"
|
||||
id="bme.temperatureCorrection"
|
||||
value="0.0"
|
||||
|
|
|
|||
|
|
@ -216,12 +216,18 @@ namespace BME_Utils {
|
|||
fifthLine = "";
|
||||
return wx;
|
||||
} else {
|
||||
tempStr = generateTempString((newTemp * 1.8) + 32);
|
||||
//
|
||||
Serial.print("correccion temperatura: "); Serial.println(Config.bme.temperatureCorrection);
|
||||
//
|
||||
tempStr = generateTempString(((newTemp + Config.bme.temperatureCorrection) * 1.8) + 32);
|
||||
if (wxModuleType == 1 || wxModuleType == 3) {
|
||||
humStr = generateHumString(newHum);
|
||||
} else if (wxModuleType == 2) {
|
||||
humStr = "..";
|
||||
}
|
||||
//
|
||||
Serial.print("correccion altura: "); Serial.println(Config.bme.heightCorrection);
|
||||
//
|
||||
presStr = generatePresString(newPress + (Config.bme.heightCorrection/CORRECTION_FACTOR));
|
||||
fifthLine = "BME-> " + String(int(newTemp))+"C " + humStr + "% " + presStr.substring(0,4) + "hPa";
|
||||
wx = ".../...g...t" + tempStr + "r...p...P...h" + humStr + "b" + presStr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue