Fix status temp sensor array references
This commit is contained in:
@@ -463,9 +463,6 @@ void buildStatusDocument(JsonDocument& doc) {
|
||||
battery["cells_valid"] = false;
|
||||
}
|
||||
|
||||
const float tempValues[4] = {sensors.temp1, sensors.temp2, sensors.temp3, sensors.temp4};
|
||||
const bool tempOnline[4] = {sensors.temp1Online, sensors.temp2Online, sensors.temp3Online, sensors.temp4Online};
|
||||
|
||||
JsonArray temps = doc.createNestedArray("temps");
|
||||
int tempCount = appConfig.tempSensorCount > 4 ? 4 : appConfig.tempSensorCount;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user