Temp sensor adj when in F

This commit is contained in:
Magnus Persson
2022-04-03 20:28:59 +02:00
parent 1494b2b3b2
commit f2b926cce6
2 changed files with 4 additions and 0 deletions

View File

@ -267,6 +267,9 @@ void WebServerHandler::webHandleStatus() {
double tempC = myTempSensor.getTempC(myConfig.isGyroTemp()); double tempC = myTempSensor.getTempC(myConfig.isGyroTemp());
double gravity = calculateGravity(angle, tempC); double gravity = calculateGravity(angle, tempC);
if (myConfig.isTempF()) // If the format is F we need to replace this value
doc[PARAM_TEMP_ADJ] = convertCtoF(myConfig.getTempSensorAdjC());
doc[PARAM_ID] = myConfig.getID(); doc[PARAM_ID] = myConfig.getID();
doc[PARAM_ANGLE] = reduceFloatPrecision(angle); doc[PARAM_ANGLE] = reduceFloatPrecision(angle);
if (myConfig.isGravityTempAdj()) { if (myConfig.isGravityTempAdj()) {

View File

@ -21,6 +21,7 @@ v0.9.0
* BUG: Corrected PIN for voltage read on ESP32 * BUG: Corrected PIN for voltage read on ESP32
* BUG: If using plato and not gravity formula was defined the value was set to null. * BUG: If using plato and not gravity formula was defined the value was set to null.
* BUG: Temp format name was incorrect in iSpindle format causing receiver to incorrectly read temperature. * BUG: Temp format name was incorrect in iSpindle format causing receiver to incorrectly read temperature.
* BUG: Temperature sensor adjusmemnt value was not handled properly when using Farenheight.
v0.8.0 v0.8.0
------ ------