fix sensor building
This commit is contained in:
parent
bdf87cab17
commit
1e695faef0
@ -25,7 +25,7 @@ public:
|
||||
default:
|
||||
StaticJsonDocument<200> jsonSensor;
|
||||
if (buildSensorJson(value, jsonSensor)) {
|
||||
jsonDoc.add(jsonSensor);
|
||||
jsonDoc.set(jsonSensor);
|
||||
} else {
|
||||
Protocol::toJson(value, jsonDoc);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user