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