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 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_ANGLE] = reduceFloatPrecision(angle);
if (myConfig.isGravityTempAdj()) {